public class SendBarrierInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SendBarrierInput>
SendBarrierInputBuilder
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:
SendBarrierInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new SendBarrierInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SendBarrierInputBuilder, 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 methodSendBarrierInputBuilder
,
Builder
Constructor and Description |
---|
SendBarrierInputBuilder() |
SendBarrierInputBuilder(SendBarrierInput base) |
Modifier and Type | Method and Description |
---|---|
SendBarrierInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> |
augmentation(Class<E$$> augmentationType) |
SendBarrierInput |
build() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef |
getNode() |
SendBarrierInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> augmentationType) |
SendBarrierInputBuilder |
setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value) |
public SendBarrierInputBuilder()
public SendBarrierInputBuilder(SendBarrierInput base)
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef getNode()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> E$$ augmentation(Class<E$$> augmentationType)
public SendBarrierInputBuilder setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
public SendBarrierInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput> augmentationValue)
public SendBarrierInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendBarrierInput>> augmentationType)
public SendBarrierInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SendBarrierInput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.