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