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