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