public class QueuePropertyBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<QueueProperty>
QueuePropertyBuilder
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:
QueuePropertyBuilder createTarget(int fooXyzzy, int barBaz) {
return new QueuePropertyBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of QueuePropertyBuilder, 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 methodQueuePropertyBuilder
,
Builder
Constructor and Description |
---|
QueuePropertyBuilder() |
QueuePropertyBuilder(QueueProperty base) |
Modifier and Type | Method and Description |
---|---|
QueuePropertyBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> |
augmentation(Class<E$$> augmentationType) |
QueueProperty |
build() |
QueueProperties |
getProperty() |
QueuePropertyBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> augmentationType) |
QueuePropertyBuilder |
setProperty(QueueProperties value) |
public QueuePropertyBuilder()
public QueuePropertyBuilder(QueueProperty base)
public QueueProperties getProperty()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> E$$ augmentation(Class<E$$> augmentationType)
public QueuePropertyBuilder setProperty(QueueProperties value)
public QueuePropertyBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty> augmentationValue)
public QueuePropertyBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueueProperty>> augmentationType)
public QueueProperty build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<QueueProperty,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.