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