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