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