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