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