public class PhysicalSwitchAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PhysicalSwitchAugmentation>
PhysicalSwitchAugmentationBuilder
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:
PhysicalSwitchAugmentationBuilder createTarget(int fooXyzzy, int barBaz) {
return new PhysicalSwitchAugmentationBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PhysicalSwitchAugmentationBuilder, 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 methodPhysicalSwitchAugmentationBuilder
,
Builder
Constructor and Description |
---|
PhysicalSwitchAugmentationBuilder() |
PhysicalSwitchAugmentationBuilder(HwvtepNodeIdentification arg) |
PhysicalSwitchAugmentationBuilder(HwvtepPhysicalSwitchAttributes arg) |
PhysicalSwitchAugmentationBuilder(PhysicalSwitchAugmentation base) |
public PhysicalSwitchAugmentationBuilder()
public PhysicalSwitchAugmentationBuilder(HwvtepPhysicalSwitchAttributes arg)
public PhysicalSwitchAugmentationBuilder(HwvtepNodeIdentification arg)
public PhysicalSwitchAugmentationBuilder(PhysicalSwitchAugmentation base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic String getHwvtepNodeDescription()
public HwvtepNodeName getHwvtepNodeName()
public HwvtepGlobalRef getManagedBy()
public List<ManagementIps> getManagementIps()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPhysicalSwitchUuid()
public List<SwitchFaultStatus> getSwitchFaultStatus()
public PhysicalSwitchAugmentationBuilder setHwvtepNodeDescription(String value)
public PhysicalSwitchAugmentationBuilder setHwvtepNodeName(HwvtepNodeName value)
public PhysicalSwitchAugmentationBuilder setManagedBy(HwvtepGlobalRef value)
public PhysicalSwitchAugmentationBuilder setManagementIps(List<ManagementIps> values)
public PhysicalSwitchAugmentationBuilder setPhysicalSwitchUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public PhysicalSwitchAugmentationBuilder setSwitchFaultStatus(List<SwitchFaultStatus> values)
public PhysicalSwitchAugmentationBuilder setTunnelIps(List<TunnelIps> values)
public PhysicalSwitchAugmentationBuilder setTunnels(List<Tunnels> values)
public PhysicalSwitchAugmentation build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PhysicalSwitchAugmentation,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.