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