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