public class QueuePropContainerBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<QueuePropContainer>
QueuePropContainerBuilder
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:
QueuePropContainerBuilder createTarget(int fooXyzzy, int barBaz) {
return new QueuePropContainerBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of QueuePropContainerBuilder, 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 methodQueuePropContainerBuilder
,
Builder
Constructor and Description |
---|
QueuePropContainerBuilder() |
QueuePropContainerBuilder(QueuePropContainer base) |
QueuePropContainerBuilder(QueuePropertyHeader arg) |
Modifier and Type | Method and Description |
---|---|
QueuePropContainerBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> |
augmentation(Class<E$$> augmentationType) |
QueuePropContainer |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<QueueProperty> |
getQueueProperty() |
QueuePropContainerBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> augmentationType) |
QueuePropContainerBuilder |
setQueueProperty(List<QueueProperty> values) |
public QueuePropContainerBuilder()
public QueuePropContainerBuilder(QueuePropertyHeader arg)
public QueuePropContainerBuilder(QueuePropContainer base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<QueueProperty> getQueueProperty()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> E$$ augmentation(Class<E$$> augmentationType)
public QueuePropContainerBuilder setQueueProperty(List<QueueProperty> values)
public QueuePropContainerBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer> augmentationValue)
public QueuePropContainerBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<QueuePropContainer>> augmentationType)
public QueuePropContainer build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<QueuePropContainer,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.