public class NxDecNshTtlBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxDecNshTtl>
NxDecNshTtlBuilder 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:
NxDecNshTtlBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxDecNshTtlBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxDecNshTtlBuilder, 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 methodNxDecNshTtlBuilder,
Builder| Constructor and Description |
|---|
NxDecNshTtlBuilder() |
NxDecNshTtlBuilder(NxDecNshTtl base) |
| Modifier and Type | Method and Description |
|---|---|
NxDecNshTtlBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> |
augmentation(Class<E$$> augmentationType) |
NxDecNshTtl |
build() |
NxDecNshTtlBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> augmentationType) |
public NxDecNshTtlBuilder()
public NxDecNshTtlBuilder(NxDecNshTtl base)
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> E$$ augmentation(Class<E$$> augmentationType)
public NxDecNshTtlBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl> augmentationValue)
public NxDecNshTtlBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxDecNshTtl>> augmentationType)
public NxDecNshTtl build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxDecNshTtl,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.