public class InterfaceExternalIdsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<InterfaceExternalIds>
InterfaceExternalIdsBuilder
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:
InterfaceExternalIdsBuilder createTarget(int fooXyzzy, int barBaz) {
return new InterfaceExternalIdsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of InterfaceExternalIdsBuilder, 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 methodInterfaceExternalIdsBuilder
,
Builder
Constructor and Description |
---|
InterfaceExternalIdsBuilder() |
InterfaceExternalIdsBuilder(InterfaceExternalIds base) |
Modifier and Type | Method and Description |
---|---|
InterfaceExternalIdsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> |
augmentation(Class<E$$> augmentationType) |
InterfaceExternalIds |
build() |
String |
getExternalIdKey() |
String |
getExternalIdValue() |
InterfaceExternalIdsKey |
key() |
InterfaceExternalIdsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> augmentationType) |
InterfaceExternalIdsBuilder |
setExternalIdKey(String value) |
InterfaceExternalIdsBuilder |
setExternalIdValue(String value) |
InterfaceExternalIdsBuilder |
withKey(InterfaceExternalIdsKey key) |
public InterfaceExternalIdsBuilder()
public InterfaceExternalIdsBuilder(InterfaceExternalIds base)
public InterfaceExternalIdsKey key()
public String getExternalIdKey()
public String getExternalIdValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> E$$ augmentation(Class<E$$> augmentationType)
public InterfaceExternalIdsBuilder withKey(InterfaceExternalIdsKey key)
public InterfaceExternalIdsBuilder setExternalIdKey(String value)
public InterfaceExternalIdsBuilder setExternalIdValue(String value)
public InterfaceExternalIdsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds> augmentationValue)
public InterfaceExternalIdsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceExternalIds>> augmentationType)
public InterfaceExternalIds build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<InterfaceExternalIds,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.