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