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