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