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