public class GlobalRpcBenchInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GlobalRpcBenchInput>
GlobalRpcBenchInputBuilder
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:
GlobalRpcBenchInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new GlobalRpcBenchInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GlobalRpcBenchInputBuilder, 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 methodGlobalRpcBenchInputBuilder
,
Builder
Constructor and Description |
---|
GlobalRpcBenchInputBuilder() |
GlobalRpcBenchInputBuilder(GlobalRpcBenchInput base) |
GlobalRpcBenchInputBuilder(Payload arg) |
Modifier and Type | Method and Description |
---|---|
GlobalRpcBenchInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> |
augmentation(Class<E$$> augmentationType) |
GlobalRpcBenchInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<Payload> |
getPayload() |
GlobalRpcBenchInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> augmentationType) |
GlobalRpcBenchInputBuilder |
setPayload(List<Payload> values) |
public GlobalRpcBenchInputBuilder()
public GlobalRpcBenchInputBuilder(Payload arg)
public GlobalRpcBenchInputBuilder(GlobalRpcBenchInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> E$$ augmentation(Class<E$$> augmentationType)
public GlobalRpcBenchInputBuilder setPayload(List<Payload> values)
public GlobalRpcBenchInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput> augmentationValue)
public GlobalRpcBenchInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GlobalRpcBenchInput>> augmentationType)
public GlobalRpcBenchInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GlobalRpcBenchInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.