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