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