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