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