public class SwitchBindingsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SwitchBindings>
SwitchBindingsBuilder
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:
SwitchBindingsBuilder createTarget(int fooXyzzy, int barBaz) {
return new SwitchBindingsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SwitchBindingsBuilder, 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 methodSwitchBindingsBuilder
,
Builder
Constructor and Description |
---|
SwitchBindingsBuilder() |
SwitchBindingsBuilder(SwitchBindings base) |
Modifier and Type | Method and Description |
---|---|
SwitchBindingsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> |
augmentation(Class<E$$> augmentationType) |
SwitchBindings |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getDestinationAddress() |
HwvtepLogicalSwitchRef |
getLogicalSwitchRef() |
SwitchBindingsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> augmentationType) |
SwitchBindingsBuilder |
setDestinationAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
SwitchBindingsBuilder |
setLogicalSwitchRef(HwvtepLogicalSwitchRef value) |
public SwitchBindingsBuilder()
public SwitchBindingsBuilder(SwitchBindings base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getDestinationAddress()
public HwvtepLogicalSwitchRef getLogicalSwitchRef()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> E$$ augmentation(Class<E$$> augmentationType)
public SwitchBindingsBuilder setDestinationAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public SwitchBindingsBuilder setLogicalSwitchRef(HwvtepLogicalSwitchRef value)
public SwitchBindingsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings> augmentationValue)
public SwitchBindingsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SwitchBindings>> augmentationType)
public SwitchBindings build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SwitchBindings,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.