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