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