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