public class QosEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<QosEntry>
QosEntryBuilder
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:
QosEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new QosEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of QosEntryBuilder, 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 methodQosEntryBuilder
,
Builder
Constructor and Description |
---|
QosEntryBuilder() |
QosEntryBuilder(QosEntry base) |
Modifier and Type | Method and Description |
---|---|
QosEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> |
augmentation(Class<E$$> augmentationType) |
QosEntry |
build() |
Long |
getQosKey() |
OvsdbQosRef |
getQosRef() |
QosEntryKey |
key() |
QosEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> augmentationType) |
QosEntryBuilder |
setQosKey(Long value) |
QosEntryBuilder |
setQosRef(OvsdbQosRef value) |
QosEntryBuilder |
withKey(QosEntryKey key) |
public QosEntryBuilder()
public QosEntryBuilder(QosEntry base)
public QosEntryKey key()
public Long getQosKey()
public OvsdbQosRef getQosRef()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> E$$ augmentation(Class<E$$> augmentationType)
public QosEntryBuilder withKey(QosEntryKey key)
public QosEntryBuilder setQosKey(Long value)
public QosEntryBuilder setQosRef(OvsdbQosRef value)
public QosEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry> augmentationValue)
public QosEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QosEntry>> augmentationType)
public QosEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<QosEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.