public class GetGroupStatisticsInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GetGroupStatisticsInput>
GetGroupStatisticsInputBuilder
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:
GetGroupStatisticsInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new GetGroupStatisticsInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GetGroupStatisticsInputBuilder, 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 methodGetGroupStatisticsInputBuilder
,
Builder
Constructor and Description |
---|
GetGroupStatisticsInputBuilder() |
GetGroupStatisticsInputBuilder(GetGroupStatisticsInput base) |
GetGroupStatisticsInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg) |
GetGroupStatisticsInputBuilder(StatsInputCommonGrouping arg) |
GetGroupStatisticsInputBuilder(StoreStatsGrouping arg) |
Modifier and Type | Method and Description |
---|---|
GetGroupStatisticsInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> |
augmentation(Class<E$$> augmentationType) |
GetGroupStatisticsInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
GroupId |
getGroupId() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef |
getNode() |
Boolean |
isStoreStats() |
GetGroupStatisticsInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> augmentationType) |
GetGroupStatisticsInputBuilder |
setGroupId(GroupId value) |
GetGroupStatisticsInputBuilder |
setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value) |
GetGroupStatisticsInputBuilder |
setStoreStats(Boolean value) |
public GetGroupStatisticsInputBuilder()
public GetGroupStatisticsInputBuilder(StatsInputCommonGrouping arg)
public GetGroupStatisticsInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg)
public GetGroupStatisticsInputBuilder(StoreStatsGrouping arg)
public GetGroupStatisticsInputBuilder(GetGroupStatisticsInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic GroupId getGroupId()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef getNode()
public Boolean isStoreStats()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> E$$ augmentation(Class<E$$> augmentationType)
public GetGroupStatisticsInputBuilder setGroupId(GroupId value)
public GetGroupStatisticsInputBuilder setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
public GetGroupStatisticsInputBuilder setStoreStats(Boolean value)
public GetGroupStatisticsInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput> augmentationValue)
public GetGroupStatisticsInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetGroupStatisticsInput>> augmentationType)
public GetGroupStatisticsInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GetGroupStatisticsInput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.