Class OvsdbTerminationPointAugmentationBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentationBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<OvsdbTerminationPointAugmentation>
,org.opendaylight.yangtools.concepts.CheckedBuilder<OvsdbTerminationPointAugmentation,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
@Generated("mdsal-binding-generator") public class OvsdbTerminationPointAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OvsdbTerminationPointAugmentation>
Class that buildsOvsdbTerminationPointAugmentationBuilder
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:
OvsdbTerminationPointAugmentationBuilder createTarget(int fooXyzzy, int barBaz) { return new OvsdbTerminationPointAugmentationBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of OvsdbTerminationPointAugmentationBuilder, 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 oportunities, 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:
OvsdbTerminationPointAugmentationBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description OvsdbTerminationPointAugmentationBuilder()
OvsdbTerminationPointAugmentationBuilder(OvsdbPortInterfaceAttributes arg)
OvsdbTerminationPointAugmentationBuilder(OvsdbTerminationPointAugmentation base)
-
Method Summary
-
-
-
Constructor Detail
-
OvsdbTerminationPointAugmentationBuilder
public OvsdbTerminationPointAugmentationBuilder()
-
OvsdbTerminationPointAugmentationBuilder
public OvsdbTerminationPointAugmentationBuilder(OvsdbPortInterfaceAttributes arg)
-
OvsdbTerminationPointAugmentationBuilder
public OvsdbTerminationPointAugmentationBuilder(OvsdbTerminationPointAugmentation base)
-
-
Method Detail
-
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:- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbPortInterfaceAttributes
- 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()
-
getIngressPolicingBurst
public org.opendaylight.yangtools.yang.common.Uint32 getIngressPolicingBurst()
-
getIngressPolicingRate
public org.opendaylight.yangtools.yang.common.Uint32 getIngressPolicingRate()
-
getInterfaceBfd
public Map<InterfaceBfdKey,InterfaceBfd> getInterfaceBfd()
-
getInterfaceBfdStatus
public Map<InterfaceBfdStatusKey,InterfaceBfdStatus> getInterfaceBfdStatus()
-
getInterfaceExternalIds
public Map<InterfaceExternalIdsKey,InterfaceExternalIds> getInterfaceExternalIds()
-
getInterfaceLldp
public Map<InterfaceLldpKey,InterfaceLldp> getInterfaceLldp()
-
getInterfaceOtherConfigs
public Map<InterfaceOtherConfigsKey,InterfaceOtherConfigs> getInterfaceOtherConfigs()
-
getInterfaceType
public Class<? extends InterfaceTypeBase> getInterfaceType()
-
getInterfaceUuid
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getInterfaceUuid()
-
getMac
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMac()
-
getMacInUse
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMacInUse()
-
getName
public String getName()
-
getOfport
public org.opendaylight.yangtools.yang.common.Uint32 getOfport()
-
getOfportRequest
public org.opendaylight.yangtools.yang.common.Uint16 getOfportRequest()
-
getOptions
public Map<OptionsKey,Options> getOptions()
-
getPortExternalIds
public Map<PortExternalIdsKey,PortExternalIds> getPortExternalIds()
-
getPortOtherConfigs
public Map<PortOtherConfigsKey,PortOtherConfigs> getPortOtherConfigs()
-
getPortUuid
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPortUuid()
-
getQosEntry
public Map<QosEntryKey,QosEntry> getQosEntry()
-
getVlanMode
public OvsdbPortInterfaceAttributes.VlanMode getVlanMode()
-
getVlanTag
public org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanTag()
-
setIfindex
public OvsdbTerminationPointAugmentationBuilder setIfindex(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setIfindex
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setIfindex(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetIfindex(Uint32)
instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setIngressPolicingBurst
public OvsdbTerminationPointAugmentationBuilder setIngressPolicingBurst(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setIngressPolicingBurst
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setIngressPolicingBurst(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetIngressPolicingBurst(Uint32)
instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setIngressPolicingRate
public OvsdbTerminationPointAugmentationBuilder setIngressPolicingRate(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setIngressPolicingRate
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setIngressPolicingRate(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetIngressPolicingRate(Uint32)
instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setInterfaceBfd
public OvsdbTerminationPointAugmentationBuilder setInterfaceBfd(Map<InterfaceBfdKey,InterfaceBfd> values)
-
setInterfaceBfd
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setInterfaceBfd(List<InterfaceBfd> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceBfd(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setInterfaceBfdStatus
public OvsdbTerminationPointAugmentationBuilder setInterfaceBfdStatus(Map<InterfaceBfdStatusKey,InterfaceBfdStatus> values)
-
setInterfaceBfdStatus
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setInterfaceBfdStatus(List<InterfaceBfdStatus> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceBfdStatus(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setInterfaceExternalIds
public OvsdbTerminationPointAugmentationBuilder setInterfaceExternalIds(Map<InterfaceExternalIdsKey,InterfaceExternalIds> values)
-
setInterfaceExternalIds
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setInterfaceExternalIds(List<InterfaceExternalIds> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceExternalIds(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setInterfaceLldp
public OvsdbTerminationPointAugmentationBuilder setInterfaceLldp(Map<InterfaceLldpKey,InterfaceLldp> values)
-
setInterfaceLldp
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setInterfaceLldp(List<InterfaceLldp> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceLldp(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setInterfaceOtherConfigs
public OvsdbTerminationPointAugmentationBuilder setInterfaceOtherConfigs(Map<InterfaceOtherConfigsKey,InterfaceOtherConfigs> values)
-
setInterfaceOtherConfigs
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setInterfaceOtherConfigs(List<InterfaceOtherConfigs> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceOtherConfigs(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setInterfaceType
public OvsdbTerminationPointAugmentationBuilder setInterfaceType(Class<? extends InterfaceTypeBase> value)
-
setInterfaceUuid
public OvsdbTerminationPointAugmentationBuilder setInterfaceUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
-
setMac
public OvsdbTerminationPointAugmentationBuilder setMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
-
setMacInUse
public OvsdbTerminationPointAugmentationBuilder setMacInUse(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
-
setName
public OvsdbTerminationPointAugmentationBuilder setName(String value)
-
setOfport
public OvsdbTerminationPointAugmentationBuilder setOfport(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setOfport
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setOfport(Long value)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetOfport(Uint32)
instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setOfportRequest
public OvsdbTerminationPointAugmentationBuilder setOfportRequest(org.opendaylight.yangtools.yang.common.Uint16 value)
-
setOfportRequest
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setOfportRequest(Integer value)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetOfportRequest(Uint16)
instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setOptions
public OvsdbTerminationPointAugmentationBuilder setOptions(Map<OptionsKey,Options> values)
-
setOptions
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setOptions(List<Options> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetOptions(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setPortExternalIds
public OvsdbTerminationPointAugmentationBuilder setPortExternalIds(Map<PortExternalIdsKey,PortExternalIds> values)
-
setPortExternalIds
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setPortExternalIds(List<PortExternalIds> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetPortExternalIds(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setPortOtherConfigs
public OvsdbTerminationPointAugmentationBuilder setPortOtherConfigs(Map<PortOtherConfigsKey,PortOtherConfigs> values)
-
setPortOtherConfigs
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setPortOtherConfigs(List<PortOtherConfigs> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetPortOtherConfigs(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setPortUuid
public OvsdbTerminationPointAugmentationBuilder setPortUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
-
setQosEntry
public OvsdbTerminationPointAugmentationBuilder setQosEntry(Map<QosEntryKey,QosEntry> values)
-
setQosEntry
@Deprecated(forRemoval=true) public OvsdbTerminationPointAugmentationBuilder setQosEntry(List<QosEntry> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetQosEntry(Map)
instead.Utility migration setter. IMPORTANT NOTE: This method does not completely match previous mechanics, as the list is processed as during this method's execution. Any future modifications of the list are NOT reflected in this builder nor its products.- Parameters:
values
- Legacy List of values- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the list contains entries with the same keyNullPointerException
- if the list contains a null entry
-
setTrunks
public OvsdbTerminationPointAugmentationBuilder setTrunks(List<Trunks> values)
-
setVlanMode
public OvsdbTerminationPointAugmentationBuilder setVlanMode(OvsdbPortInterfaceAttributes.VlanMode value)
-
setVlanTag
public OvsdbTerminationPointAugmentationBuilder setVlanTag(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value)
-
build
public OvsdbTerminationPointAugmentation build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<OvsdbTerminationPointAugmentation>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<OvsdbTerminationPointAugmentation,IllegalArgumentException>
-
-