public class VlanBindingsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<VlanBindings>
VlanBindingsBuilder
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:
VlanBindingsBuilder createTarget(int fooXyzzy, int barBaz) {
return new VlanBindingsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of VlanBindingsBuilder, 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 methodVlanBindingsBuilder
,
Builder
Constructor and Description |
---|
VlanBindingsBuilder() |
VlanBindingsBuilder(VlanBindings base) |
Modifier and Type | Method and Description |
---|---|
VlanBindingsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> |
augmentation(Class<E$$> augmentationType) |
VlanBindings |
build() |
HwvtepLogicalSwitchRef |
getLogicalSwitchRef() |
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId |
getVlanIdKey() |
VlanBindingsKey |
key() |
VlanBindingsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> augmentationType) |
VlanBindingsBuilder |
setLogicalSwitchRef(HwvtepLogicalSwitchRef value) |
VlanBindingsBuilder |
setVlanIdKey(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value) |
VlanBindingsBuilder |
withKey(VlanBindingsKey key) |
public VlanBindingsBuilder()
public VlanBindingsBuilder(VlanBindings base)
public VlanBindingsKey key()
public HwvtepLogicalSwitchRef getLogicalSwitchRef()
public org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanIdKey()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> E$$ augmentation(Class<E$$> augmentationType)
public VlanBindingsBuilder withKey(VlanBindingsKey key)
public VlanBindingsBuilder setLogicalSwitchRef(HwvtepLogicalSwitchRef value)
public VlanBindingsBuilder setVlanIdKey(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value)
public VlanBindingsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings> augmentationValue)
public VlanBindingsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VlanBindings>> augmentationType)
public VlanBindings build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<VlanBindings,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.