public class LogicalSwitchesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<LogicalSwitches>
LogicalSwitchesBuilder
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:
LogicalSwitchesBuilder createTarget(int fooXyzzy, int barBaz) {
return new LogicalSwitchesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of LogicalSwitchesBuilder, 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 methodLogicalSwitchesBuilder
,
Builder
Constructor and Description |
---|
LogicalSwitchesBuilder() |
LogicalSwitchesBuilder(HwvtepLogicalSwitchAttributes arg) |
LogicalSwitchesBuilder(HwvtepNodeIdentification arg) |
LogicalSwitchesBuilder(LogicalSwitches base) |
Modifier and Type | Method and Description |
---|---|
LogicalSwitchesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> |
augmentation(Class<E$$> augmentationType) |
LogicalSwitches |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
String |
getHwvtepNodeDescription() |
HwvtepNodeName |
getHwvtepNodeName() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
getLogicalSwitchUuid() |
String |
getReplicationMode() |
String |
getTunnelKey() |
LogicalSwitchesKey |
key() |
LogicalSwitchesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> augmentationType) |
LogicalSwitchesBuilder |
setHwvtepNodeDescription(String value) |
LogicalSwitchesBuilder |
setHwvtepNodeName(HwvtepNodeName value) |
LogicalSwitchesBuilder |
setLogicalSwitchUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
LogicalSwitchesBuilder |
setReplicationMode(String value) |
LogicalSwitchesBuilder |
setTunnelKey(String value) |
LogicalSwitchesBuilder |
withKey(LogicalSwitchesKey key) |
public LogicalSwitchesBuilder()
public LogicalSwitchesBuilder(HwvtepLogicalSwitchAttributes arg)
public LogicalSwitchesBuilder(HwvtepNodeIdentification arg)
public LogicalSwitchesBuilder(LogicalSwitches base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic LogicalSwitchesKey key()
public String getHwvtepNodeDescription()
public HwvtepNodeName getHwvtepNodeName()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getLogicalSwitchUuid()
public String getReplicationMode()
public String getTunnelKey()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> E$$ augmentation(Class<E$$> augmentationType)
public LogicalSwitchesBuilder withKey(LogicalSwitchesKey key)
public LogicalSwitchesBuilder setHwvtepNodeDescription(String value)
public LogicalSwitchesBuilder setHwvtepNodeName(HwvtepNodeName value)
public LogicalSwitchesBuilder setLogicalSwitchUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public LogicalSwitchesBuilder setReplicationMode(String value)
public LogicalSwitchesBuilder setTunnelKey(String value)
public LogicalSwitchesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches> augmentationValue)
public LogicalSwitchesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LogicalSwitches>> augmentationType)
public LogicalSwitches build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<LogicalSwitches,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.