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