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