Class OvsdbTerminationPointAugmentationBuilder
java.lang.Object
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentationBuilder
@Generated("mdsal-binding-generator")
public class OvsdbTerminationPointAugmentationBuilder
extends Object
Class that builds
OvsdbTerminationPointAugmentation
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:
OvsdbTerminationPointAugmentation createOvsdbTerminationPointAugmentation(int fooXyzzy, int barBaz) {
return new OvsdbTerminationPointAugmentationBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OvsdbTerminationPointAugmentation, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
- very efficient Java bytecode, as the method invocation result, in this case the Builder reference, is
on the stack, so further method invocations just need to fill method arguments for the next method
invocation, which is terminated by
build()
, which is then returned from the method - better understanding by humans, as the scope of mutable state (the builder) is kept to a minimum and is very localized
- better optimization opportunities, as the object scope is minimized in terms of invocation (rather than method) stack, making escape analysis a lot easier. Given enough compiler (JIT/AOT) prowess, the cost of th builder object can be completely eliminated
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an empty builder.Construct a new builder initialized from specifiedOvsdbPortInterfaceAttributes
.Construct a builder initialized with state from specifiedOvsdbTerminationPointAugmentation
. -
Method Summary
Modifier and TypeMethodDescription@NonNull OvsdbTerminationPointAugmentation
build()
A newOvsdbTerminationPointAugmentation
instance.void
fieldsFrom
(org.opendaylight.yangtools.yang.binding.DataObject arg) Set fields from given grouping argument.org.opendaylight.yangtools.yang.common.Uint32
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIfindex()
.org.opendaylight.yangtools.yang.common.Uint32
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingBurst()
.org.opendaylight.yangtools.yang.common.Uint32
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingRate()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfd()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfdStatus()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceExternalIds()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceLldp()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceOtherConfigs()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceType()
.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceUuid()
.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
getMac()
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getMac()
.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getMacInUse()
.getName()
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getName()
.org.opendaylight.yangtools.yang.common.Uint32
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOfport()
.org.opendaylight.yangtools.yang.common.Uint16
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOfportRequest()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOptions()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortExternalIds()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortOtherConfigs()
.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortUuid()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getQosEntry()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getTrunks()
.Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getVlanMode()
.org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getVlanTag()
.setIfindex
(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIfindex()
to the specified value.setIngressPolicingBurst
(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingBurst()
to the specified value.setIngressPolicingRate
(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingRate()
to the specified value.setInterfaceBfd
(Map<InterfaceBfdKey, InterfaceBfd> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfd()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfdStatus()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceExternalIds()
to the specified value.setInterfaceLldp
(Map<InterfaceLldpKey, InterfaceLldp> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceLldp()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceOtherConfigs()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceType()
to the specified value.setInterfaceUuid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceUuid()
to the specified value.setMac
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) Set the property corresponding toOvsdbPortInterfaceAttributes.getMac()
to the specified value.setMacInUse
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) Set the property corresponding toOvsdbPortInterfaceAttributes.getMacInUse()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getName()
to the specified value.setOfport
(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getOfport()
to the specified value.setOfportRequest
(org.opendaylight.yangtools.yang.common.Uint16 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getOfportRequest()
to the specified value.setOptions
(Map<OptionsKey, Options> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getOptions()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getPortExternalIds()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getPortOtherConfigs()
to the specified value.setPortUuid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) Set the property corresponding toOvsdbPortInterfaceAttributes.getPortUuid()
to the specified value.setQosEntry
(Map<QosEntryKey, QosEntry> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getQosEntry()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getTrunks()
to the specified value.Set the property corresponding toOvsdbPortInterfaceAttributes.getVlanMode()
to the specified value.setVlanTag
(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value) Set the property corresponding toOvsdbPortInterfaceAttributes.getVlanTag()
to the specified value.
-
Constructor Details
-
OvsdbTerminationPointAugmentationBuilder
public OvsdbTerminationPointAugmentationBuilder()Construct an empty builder. -
OvsdbTerminationPointAugmentationBuilder
Construct a new builder initialized from specifiedOvsdbPortInterfaceAttributes
.- Parameters:
arg
- OvsdbPortInterfaceAttributes from which the builder should be initialized
-
OvsdbTerminationPointAugmentationBuilder
Construct a builder initialized with state from specifiedOvsdbTerminationPointAugmentation
.- Parameters:
base
- OvsdbTerminationPointAugmentation from which the builder should be initialized
-
-
Method Details
-
fieldsFrom
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg) Set fields from given grouping argument. Valid argument is instance of one of following types:- Parameters:
arg
- grouping object- Throws:
IllegalArgumentException
- if given argument is none of valid types or has property with incompatible value
-
getIfindex
public org.opendaylight.yangtools.yang.common.Uint32 getIfindex()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIfindex()
.- Returns:
- current value
-
getIngressPolicingBurst
public org.opendaylight.yangtools.yang.common.Uint32 getIngressPolicingBurst()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingBurst()
.- Returns:
- current value
-
getIngressPolicingRate
public org.opendaylight.yangtools.yang.common.Uint32 getIngressPolicingRate()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingRate()
.- Returns:
- current value
-
getInterfaceBfd
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfd()
.- Returns:
- current value
-
getInterfaceBfdStatus
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfdStatus()
.- Returns:
- current value
-
getInterfaceExternalIds
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceExternalIds()
.- Returns:
- current value
-
getInterfaceLldp
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceLldp()
.- Returns:
- current value
-
getInterfaceOtherConfigs
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceOtherConfigs()
.- Returns:
- current value
-
getInterfaceType
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceType()
.- Returns:
- current value
-
getInterfaceUuid
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getInterfaceUuid()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceUuid()
.- Returns:
- current value
-
getMac
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMac()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getMac()
.- Returns:
- current value
-
getMacInUse
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMacInUse()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getMacInUse()
.- Returns:
- current value
-
getName
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getName()
.- Returns:
- current value
-
getOfport
public org.opendaylight.yangtools.yang.common.Uint32 getOfport()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOfport()
.- Returns:
- current value
-
getOfportRequest
public org.opendaylight.yangtools.yang.common.Uint16 getOfportRequest()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOfportRequest()
.- Returns:
- current value
-
getOptions
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getOptions()
.- Returns:
- current value
-
getPortExternalIds
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortExternalIds()
.- Returns:
- current value
-
getPortOtherConfigs
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortOtherConfigs()
.- Returns:
- current value
-
getPortUuid
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPortUuid()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getPortUuid()
.- Returns:
- current value
-
getQosEntry
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getQosEntry()
.- Returns:
- current value
-
getTrunks
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getTrunks()
.- Returns:
- current value
-
getVlanMode
Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getVlanMode()
.- Returns:
- current value
-
getVlanTag
public org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanTag()Return current value associated with the property corresponding toOvsdbPortInterfaceAttributes.getVlanTag()
.- Returns:
- current value
-
setIfindex
public OvsdbTerminationPointAugmentationBuilder setIfindex(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIfindex()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIngressPolicingBurst
public OvsdbTerminationPointAugmentationBuilder setIngressPolicingBurst(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingBurst()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setIngressPolicingRate
public OvsdbTerminationPointAugmentationBuilder setIngressPolicingRate(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getIngressPolicingRate()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setInterfaceBfd
public OvsdbTerminationPointAugmentationBuilder setInterfaceBfd(Map<InterfaceBfdKey, InterfaceBfd> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfd()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setInterfaceBfdStatus
public OvsdbTerminationPointAugmentationBuilder setInterfaceBfdStatus(Map<InterfaceBfdStatusKey, InterfaceBfdStatus> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceBfdStatus()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setInterfaceExternalIds
public OvsdbTerminationPointAugmentationBuilder setInterfaceExternalIds(Map<InterfaceExternalIdsKey, InterfaceExternalIds> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceExternalIds()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setInterfaceLldp
public OvsdbTerminationPointAugmentationBuilder setInterfaceLldp(Map<InterfaceLldpKey, InterfaceLldp> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceLldp()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setInterfaceOtherConfigs
public OvsdbTerminationPointAugmentationBuilder setInterfaceOtherConfigs(Map<InterfaceOtherConfigsKey, InterfaceOtherConfigs> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceOtherConfigs()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setInterfaceType
Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceType()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setInterfaceUuid
public OvsdbTerminationPointAugmentationBuilder setInterfaceUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) Set the property corresponding toOvsdbPortInterfaceAttributes.getInterfaceUuid()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setMac
public OvsdbTerminationPointAugmentationBuilder setMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) Set the property corresponding toOvsdbPortInterfaceAttributes.getMac()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setMacInUse
public OvsdbTerminationPointAugmentationBuilder setMacInUse(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) Set the property corresponding toOvsdbPortInterfaceAttributes.getMacInUse()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setName
Set the property corresponding toOvsdbPortInterfaceAttributes.getName()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setOfport
public OvsdbTerminationPointAugmentationBuilder setOfport(org.opendaylight.yangtools.yang.common.Uint32 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getOfport()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setOfportRequest
public OvsdbTerminationPointAugmentationBuilder setOfportRequest(org.opendaylight.yangtools.yang.common.Uint16 value) Set the property corresponding toOvsdbPortInterfaceAttributes.getOfportRequest()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setOptions
Set the property corresponding toOvsdbPortInterfaceAttributes.getOptions()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setPortExternalIds
public OvsdbTerminationPointAugmentationBuilder setPortExternalIds(Map<PortExternalIdsKey, PortExternalIds> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getPortExternalIds()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setPortOtherConfigs
public OvsdbTerminationPointAugmentationBuilder setPortOtherConfigs(Map<PortOtherConfigsKey, PortOtherConfigs> values) Set the property corresponding toOvsdbPortInterfaceAttributes.getPortOtherConfigs()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setPortUuid
public OvsdbTerminationPointAugmentationBuilder setPortUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) Set the property corresponding toOvsdbPortInterfaceAttributes.getPortUuid()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setQosEntry
Set the property corresponding toOvsdbPortInterfaceAttributes.getQosEntry()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setTrunks
Set the property corresponding toOvsdbPortInterfaceAttributes.getTrunks()
to the specified value.- Parameters:
values
- desired value- Returns:
- this builder
-
setVlanMode
public OvsdbTerminationPointAugmentationBuilder setVlanMode(OvsdbPortInterfaceAttributes.VlanMode value) Set the property corresponding toOvsdbPortInterfaceAttributes.getVlanMode()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
setVlanTag
public OvsdbTerminationPointAugmentationBuilder setVlanTag(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value) Set the property corresponding toOvsdbPortInterfaceAttributes.getVlanTag()
to the specified value.- Parameters:
value
- desired value- Returns:
- this builder
-
build
A newOvsdbTerminationPointAugmentation
instance.- Returns:
- A new
OvsdbTerminationPointAugmentation
instance.
-