public class BatchAddGroupsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BatchAddGroups>
BatchAddGroupsBuilder
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:
BatchAddGroupsBuilder createTarget(int fooXyzzy, int barBaz) {
return new BatchAddGroupsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BatchAddGroupsBuilder, 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 methodBatchAddGroupsBuilder
,
Builder
Constructor and Description |
---|
BatchAddGroupsBuilder() |
BatchAddGroupsBuilder(BatchAddGroups base) |
BatchAddGroupsBuilder(Group arg) |
public BatchAddGroupsBuilder()
public BatchAddGroupsBuilder(Group arg)
public BatchAddGroupsBuilder(BatchAddGroups base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic BatchAddGroupsKey key()
public Buckets getBuckets()
public String getContainerName()
public GroupId getGroupId()
public String getGroupName()
public GroupTypes getGroupType()
public Boolean isBarrier()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchAddGroups>> E$$ augmentation(Class<E$$> augmentationType)
public BatchAddGroupsBuilder withKey(BatchAddGroupsKey key)
public BatchAddGroupsBuilder setBuckets(Buckets value)
public BatchAddGroupsBuilder setContainerName(String value)
public BatchAddGroupsBuilder setGroupId(GroupId value)
public BatchAddGroupsBuilder setGroupName(String value)
public BatchAddGroupsBuilder setGroupType(GroupTypes value)
public BatchAddGroupsBuilder setBarrier(Boolean value)
public BatchAddGroupsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchAddGroups>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BatchAddGroups> augmentationValue)
public BatchAddGroupsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchAddGroups>> augmentationType)
public BatchAddGroups build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BatchAddGroups,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.