public class DstNxTunIpv4DstCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DstNxTunIpv4DstCase>
DstNxTunIpv4DstCaseBuilder 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:
DstNxTunIpv4DstCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new DstNxTunIpv4DstCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DstNxTunIpv4DstCaseBuilder, 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 methodDstNxTunIpv4DstCaseBuilder,
Builder| Constructor and Description |
|---|
DstNxTunIpv4DstCaseBuilder() |
DstNxTunIpv4DstCaseBuilder(DstNxTunIpv4DstCase base) |
DstNxTunIpv4DstCaseBuilder(NxmNxTunIpv4DstGrouping arg) |
| Modifier and Type | Method and Description |
|---|---|
DstNxTunIpv4DstCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> |
augmentation(Class<E$$> augmentationType) |
DstNxTunIpv4DstCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yangtools.yang.common.Empty |
getNxTunIpv4Dst() |
DstNxTunIpv4DstCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> augmentationType) |
DstNxTunIpv4DstCaseBuilder |
setNxTunIpv4Dst(org.opendaylight.yangtools.yang.common.Empty value) |
public DstNxTunIpv4DstCaseBuilder()
public DstNxTunIpv4DstCaseBuilder(NxmNxTunIpv4DstGrouping arg)
public DstNxTunIpv4DstCaseBuilder(DstNxTunIpv4DstCase 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.common.Empty getNxTunIpv4Dst()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> E$$ augmentation(Class<E$$> augmentationType)
public DstNxTunIpv4DstCaseBuilder setNxTunIpv4Dst(org.opendaylight.yangtools.yang.common.Empty value)
public DstNxTunIpv4DstCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase> augmentationValue)
public DstNxTunIpv4DstCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxTunIpv4DstCase>> augmentationType)
public DstNxTunIpv4DstCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DstNxTunIpv4DstCase,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.