public class GetInterfaceStatisticsOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GetInterfaceStatisticsOutput>
GetInterfaceStatisticsOutputBuilder
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:
GetInterfaceStatisticsOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new GetInterfaceStatisticsOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GetInterfaceStatisticsOutputBuilder, 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 methodGetInterfaceStatisticsOutputBuilder
,
Builder
Constructor and Description |
---|
GetInterfaceStatisticsOutputBuilder() |
GetInterfaceStatisticsOutputBuilder(GetInterfaceStatisticsOutput base) |
Modifier and Type | Method and Description |
---|---|
GetInterfaceStatisticsOutputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> |
augmentation(Class<E$$> augmentationType) |
GetInterfaceStatisticsOutput |
build() |
StatResult |
getStatResult() |
GetInterfaceStatisticsOutputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> augmentationType) |
GetInterfaceStatisticsOutputBuilder |
setStatResult(StatResult value) |
public GetInterfaceStatisticsOutputBuilder()
public GetInterfaceStatisticsOutputBuilder(GetInterfaceStatisticsOutput base)
public StatResult getStatResult()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> E$$ augmentation(Class<E$$> augmentationType)
public GetInterfaceStatisticsOutputBuilder setStatResult(StatResult value)
public GetInterfaceStatisticsOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput> augmentationValue)
public GetInterfaceStatisticsOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetInterfaceStatisticsOutput>> augmentationType)
public GetInterfaceStatisticsOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GetInterfaceStatisticsOutput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.