public class RpcbenchRpcRoutesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<RpcbenchRpcRoutes>
RpcbenchRpcRoutesBuilder
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:
RpcbenchRpcRoutesBuilder createTarget(int fooXyzzy, int barBaz) {
return new RpcbenchRpcRoutesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of RpcbenchRpcRoutesBuilder, 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 methodRpcbenchRpcRoutesBuilder
,
Builder
Constructor and Description |
---|
RpcbenchRpcRoutesBuilder() |
RpcbenchRpcRoutesBuilder(RpcbenchRpcRoutes base) |
Modifier and Type | Method and Description |
---|---|
RpcbenchRpcRoutesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> |
augmentation(Class<E$$> augmentationType) |
RpcbenchRpcRoutes |
build() |
List<RpcRoute> |
getRpcRoute() |
RpcbenchRpcRoutesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> augmentationType) |
RpcbenchRpcRoutesBuilder |
setRpcRoute(List<RpcRoute> values) |
public RpcbenchRpcRoutesBuilder()
public RpcbenchRpcRoutesBuilder(RpcbenchRpcRoutes base)
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> E$$ augmentation(Class<E$$> augmentationType)
public RpcbenchRpcRoutesBuilder setRpcRoute(List<RpcRoute> values)
public RpcbenchRpcRoutesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes> augmentationValue)
public RpcbenchRpcRoutesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RpcbenchRpcRoutes>> augmentationType)
public RpcbenchRpcRoutes build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<RpcbenchRpcRoutes,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.