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