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