public class HwvtepPhysicalPortAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<HwvtepPhysicalPortAugmentation>
HwvtepPhysicalPortAugmentationBuilder
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:
HwvtepPhysicalPortAugmentationBuilder createTarget(int fooXyzzy, int barBaz) {
return new HwvtepPhysicalPortAugmentationBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of HwvtepPhysicalPortAugmentationBuilder, 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 methodHwvtepPhysicalPortAugmentationBuilder
,
Builder
Constructor and Description |
---|
HwvtepPhysicalPortAugmentationBuilder() |
HwvtepPhysicalPortAugmentationBuilder(HwvtepNodeIdentification arg) |
HwvtepPhysicalPortAugmentationBuilder(HwvtepPhysicalPortAttributes arg) |
HwvtepPhysicalPortAugmentationBuilder(HwvtepPhysicalPortAugmentation base) |
public HwvtepPhysicalPortAugmentationBuilder()
public HwvtepPhysicalPortAugmentationBuilder(HwvtepPhysicalPortAttributes arg)
public HwvtepPhysicalPortAugmentationBuilder(HwvtepNodeIdentification arg)
public HwvtepPhysicalPortAugmentationBuilder(HwvtepPhysicalPortAugmentation base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<AclBindings> getAclBindings()
public String getHwvtepNodeDescription()
public HwvtepNodeName getHwvtepNodeName()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPhysicalPortUuid()
public List<PortFaultStatus> getPortFaultStatus()
public List<VlanBindings> getVlanBindings()
public HwvtepPhysicalPortAugmentationBuilder setAclBindings(List<AclBindings> values)
public HwvtepPhysicalPortAugmentationBuilder setHwvtepNodeDescription(String value)
public HwvtepPhysicalPortAugmentationBuilder setHwvtepNodeName(HwvtepNodeName value)
public HwvtepPhysicalPortAugmentationBuilder setPhysicalPortUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public HwvtepPhysicalPortAugmentationBuilder setPortFaultStatus(List<PortFaultStatus> values)
public HwvtepPhysicalPortAugmentationBuilder setVlanBindings(List<VlanBindings> values)
public HwvtepPhysicalPortAugmentationBuilder setVlanStats(List<VlanStats> values)
public HwvtepPhysicalPortAugmentation build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<HwvtepPhysicalPortAugmentation,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.