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