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