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