Class OvsdbNodeAugmentationBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbNodeAugmentationBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<OvsdbNodeAugmentation>
,org.opendaylight.yangtools.concepts.CheckedBuilder<OvsdbNodeAugmentation,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
@Generated("mdsal-binding-generator") public class OvsdbNodeAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OvsdbNodeAugmentation>
Class that buildsOvsdbNodeAugmentationBuilder
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:
OvsdbNodeAugmentationBuilder createTarget(int fooXyzzy, int barBaz) { return new OvsdbNodeAugmentationBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of OvsdbNodeAugmentationBuilder, 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:
OvsdbNodeAugmentationBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description OvsdbNodeAugmentationBuilder()
OvsdbNodeAugmentationBuilder(OvsdbNodeAttributes arg)
OvsdbNodeAugmentationBuilder(OvsdbNodeAugmentation base)
-
Method Summary
-
-
-
Constructor Detail
-
OvsdbNodeAugmentationBuilder
public OvsdbNodeAugmentationBuilder()
-
OvsdbNodeAugmentationBuilder
public OvsdbNodeAugmentationBuilder(OvsdbNodeAttributes arg)
-
OvsdbNodeAugmentationBuilder
public OvsdbNodeAugmentationBuilder(OvsdbNodeAugmentation 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.OvsdbNodeAttributes
- Parameters:
arg
- grouping object- Throws:
IllegalArgumentException
- if given argument is none of valid types or has property with incompatible value
-
getAutoattach
public Map<AutoattachKey,Autoattach> getAutoattach()
-
getConnectionInfo
public ConnectionInfo getConnectionInfo()
-
getDatapathTypeEntry
public Map<DatapathTypeEntryKey,DatapathTypeEntry> getDatapathTypeEntry()
-
getDbVersion
public String getDbVersion()
-
getInterfaceTypeEntry
public Map<InterfaceTypeEntryKey,InterfaceTypeEntry> getInterfaceTypeEntry()
-
getManagedNodeEntry
public Map<ManagedNodeEntryKey,ManagedNodeEntry> getManagedNodeEntry()
-
getManagerEntry
public Map<ManagerEntryKey,ManagerEntry> getManagerEntry()
-
getOpenvswitchExternalIds
public Map<OpenvswitchExternalIdsKey,OpenvswitchExternalIds> getOpenvswitchExternalIds()
-
getOpenvswitchOtherConfigs
public Map<OpenvswitchOtherConfigsKey,OpenvswitchOtherConfigs> getOpenvswitchOtherConfigs()
-
getOvsVersion
public String getOvsVersion()
-
getQosEntries
public Map<QosEntriesKey,QosEntries> getQosEntries()
-
setAutoattach
public OvsdbNodeAugmentationBuilder setAutoattach(Map<AutoattachKey,Autoattach> values)
-
setAutoattach
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setAutoattach(List<Autoattach> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetAutoattach(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
-
setConnectionInfo
public OvsdbNodeAugmentationBuilder setConnectionInfo(ConnectionInfo value)
-
setDatapathTypeEntry
public OvsdbNodeAugmentationBuilder setDatapathTypeEntry(Map<DatapathTypeEntryKey,DatapathTypeEntry> values)
-
setDatapathTypeEntry
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setDatapathTypeEntry(List<DatapathTypeEntry> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetDatapathTypeEntry(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
-
setDbVersion
public OvsdbNodeAugmentationBuilder setDbVersion(String value)
-
setInterfaceTypeEntry
public OvsdbNodeAugmentationBuilder setInterfaceTypeEntry(Map<InterfaceTypeEntryKey,InterfaceTypeEntry> values)
-
setInterfaceTypeEntry
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setInterfaceTypeEntry(List<InterfaceTypeEntry> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetInterfaceTypeEntry(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
-
setManagedNodeEntry
public OvsdbNodeAugmentationBuilder setManagedNodeEntry(Map<ManagedNodeEntryKey,ManagedNodeEntry> values)
-
setManagedNodeEntry
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setManagedNodeEntry(List<ManagedNodeEntry> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetManagedNodeEntry(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
-
setManagerEntry
public OvsdbNodeAugmentationBuilder setManagerEntry(Map<ManagerEntryKey,ManagerEntry> values)
-
setManagerEntry
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setManagerEntry(List<ManagerEntry> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetManagerEntry(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
-
setOpenvswitchExternalIds
public OvsdbNodeAugmentationBuilder setOpenvswitchExternalIds(Map<OpenvswitchExternalIdsKey,OpenvswitchExternalIds> values)
-
setOpenvswitchExternalIds
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setOpenvswitchExternalIds(List<OpenvswitchExternalIds> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetOpenvswitchExternalIds(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
-
setOpenvswitchOtherConfigs
public OvsdbNodeAugmentationBuilder setOpenvswitchOtherConfigs(Map<OpenvswitchOtherConfigsKey,OpenvswitchOtherConfigs> values)
-
setOpenvswitchOtherConfigs
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setOpenvswitchOtherConfigs(List<OpenvswitchOtherConfigs> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetOpenvswitchOtherConfigs(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
-
setOvsVersion
public OvsdbNodeAugmentationBuilder setOvsVersion(String value)
-
setQosEntries
public OvsdbNodeAugmentationBuilder setQosEntries(Map<QosEntriesKey,QosEntries> values)
-
setQosEntries
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setQosEntries(List<QosEntries> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetQosEntries(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
-
setQueues
public OvsdbNodeAugmentationBuilder setQueues(Map<QueuesKey,Queues> values)
-
setQueues
@Deprecated(forRemoval=true) public OvsdbNodeAugmentationBuilder setQueues(List<Queues> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetQueues(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
-
build
public OvsdbNodeAugmentation build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<OvsdbNodeAugmentation>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<OvsdbNodeAugmentation,IllegalArgumentException>
-
-