public class OvsdbBridgeAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OvsdbBridgeAugmentation>
OvsdbBridgeAugmentationBuilder
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:
OvsdbBridgeAugmentationBuilder createTarget(int fooXyzzy, int barBaz) {
return new OvsdbBridgeAugmentationBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OvsdbBridgeAugmentationBuilder, 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 methodOvsdbBridgeAugmentationBuilder
,
Builder
Constructor and Description |
---|
OvsdbBridgeAugmentationBuilder() |
OvsdbBridgeAugmentationBuilder(OvsdbBridgeAttributes arg) |
OvsdbBridgeAugmentationBuilder(OvsdbBridgeAugmentation base) |
public OvsdbBridgeAugmentationBuilder()
public OvsdbBridgeAugmentationBuilder(OvsdbBridgeAttributes arg)
public OvsdbBridgeAugmentationBuilder(OvsdbBridgeAugmentation base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getAutoAttach()
public List<BridgeExternalIds> getBridgeExternalIds()
public OvsdbBridgeName getBridgeName()
public org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> getBridgeOpenflowNodeRef()
public List<BridgeOtherConfigs> getBridgeOtherConfigs()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getBridgeUuid()
public List<ControllerEntry> getControllerEntry()
public DatapathId getDatapathId()
public Class<? extends DatapathTypeBase> getDatapathType()
public Class<? extends OvsdbFailModeBase> getFailMode()
public FlowNodeRef getFlowNode()
public OvsdbNodeRef getManagedBy()
public List<ProtocolEntry> getProtocolEntry()
public Boolean isStpEnable()
public OvsdbBridgeAugmentationBuilder setAutoAttach(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public OvsdbBridgeAugmentationBuilder setBridgeExternalIds(List<BridgeExternalIds> values)
public OvsdbBridgeAugmentationBuilder setBridgeName(OvsdbBridgeName value)
public OvsdbBridgeAugmentationBuilder setBridgeOpenflowNodeRef(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> value)
public OvsdbBridgeAugmentationBuilder setBridgeOtherConfigs(List<BridgeOtherConfigs> values)
public OvsdbBridgeAugmentationBuilder setBridgeUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public OvsdbBridgeAugmentationBuilder setControllerEntry(List<ControllerEntry> values)
public OvsdbBridgeAugmentationBuilder setDatapathId(DatapathId value)
public OvsdbBridgeAugmentationBuilder setDatapathType(Class<? extends DatapathTypeBase> value)
public OvsdbBridgeAugmentationBuilder setFailMode(Class<? extends OvsdbFailModeBase> value)
public OvsdbBridgeAugmentationBuilder setFlowNode(FlowNodeRef value)
public OvsdbBridgeAugmentationBuilder setManagedBy(OvsdbNodeRef value)
public OvsdbBridgeAugmentationBuilder setProtocolEntry(List<ProtocolEntry> values)
public OvsdbBridgeAugmentationBuilder setStpEnable(Boolean value)
public OvsdbBridgeAugmentation build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<OvsdbBridgeAugmentation,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.