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