public class BridgeExternalIdsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BridgeExternalIds>
BridgeExternalIdsBuilder
instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
BridgeExternalIdsBuilder createTarget(int fooXyzzy, int barBaz) {
return new BridgeExternalIdsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BridgeExternalIdsBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build()
, which is then returned from the methodBridgeExternalIdsBuilder
,
Builder
Constructor and Description |
---|
BridgeExternalIdsBuilder() |
BridgeExternalIdsBuilder(BridgeExternalIds base) |
Modifier and Type | Method and Description |
---|---|
BridgeExternalIdsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> |
augmentation(Class<E$$> augmentationType) |
BridgeExternalIds |
build() |
String |
getBridgeExternalIdKey() |
String |
getBridgeExternalIdValue() |
BridgeExternalIdsKey |
key() |
BridgeExternalIdsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> augmentationType) |
BridgeExternalIdsBuilder |
setBridgeExternalIdKey(String value) |
BridgeExternalIdsBuilder |
setBridgeExternalIdValue(String value) |
BridgeExternalIdsBuilder |
withKey(BridgeExternalIdsKey key) |
public BridgeExternalIdsBuilder()
public BridgeExternalIdsBuilder(BridgeExternalIds base)
public BridgeExternalIdsKey key()
public String getBridgeExternalIdKey()
public String getBridgeExternalIdValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> E$$ augmentation(Class<E$$> augmentationType)
public BridgeExternalIdsBuilder withKey(BridgeExternalIdsKey key)
public BridgeExternalIdsBuilder setBridgeExternalIdKey(String value)
public BridgeExternalIdsBuilder setBridgeExternalIdValue(String value)
public BridgeExternalIdsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds> augmentationValue)
public BridgeExternalIdsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeExternalIds>> augmentationType)
public BridgeExternalIds build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BridgeExternalIds,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.