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