public class UpdateGroupInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UpdateGroupInput>
UpdateGroupInputBuilder
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:
UpdateGroupInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new UpdateGroupInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UpdateGroupInputBuilder, 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 methodUpdateGroupInputBuilder
,
Builder
Constructor and Description |
---|
UpdateGroupInputBuilder() |
UpdateGroupInputBuilder(GroupUpdate arg) |
UpdateGroupInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg) |
UpdateGroupInputBuilder(TransactionMetadata arg) |
UpdateGroupInputBuilder(UpdateGroupInput base) |
Modifier and Type | Method and Description |
---|---|
UpdateGroupInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> |
augmentation(Class<E$$> augmentationType) |
UpdateGroupInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
GroupRef |
getGroupRef() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef |
getNode() |
OriginalGroup |
getOriginalGroup() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri |
getTransactionUri() |
UpdatedGroup |
getUpdatedGroup() |
UpdateGroupInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> augmentationType) |
UpdateGroupInputBuilder |
setGroupRef(GroupRef value) |
UpdateGroupInputBuilder |
setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value) |
UpdateGroupInputBuilder |
setOriginalGroup(OriginalGroup value) |
UpdateGroupInputBuilder |
setTransactionUri(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value) |
UpdateGroupInputBuilder |
setUpdatedGroup(UpdatedGroup value) |
public UpdateGroupInputBuilder()
public UpdateGroupInputBuilder(TransactionMetadata arg)
public UpdateGroupInputBuilder(GroupUpdate arg)
public UpdateGroupInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg)
public UpdateGroupInputBuilder(UpdateGroupInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic GroupRef getGroupRef()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef getNode()
public OriginalGroup getOriginalGroup()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri getTransactionUri()
public UpdatedGroup getUpdatedGroup()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> E$$ augmentation(Class<E$$> augmentationType)
public UpdateGroupInputBuilder setGroupRef(GroupRef value)
public UpdateGroupInputBuilder setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
public UpdateGroupInputBuilder setOriginalGroup(OriginalGroup value)
public UpdateGroupInputBuilder setTransactionUri(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
public UpdateGroupInputBuilder setUpdatedGroup(UpdatedGroup value)
public UpdateGroupInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput> augmentationValue)
public UpdateGroupInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateGroupInput>> augmentationType)
public UpdateGroupInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UpdateGroupInput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.