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>
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
-
getAutoattach
public List<Autoattach> getAutoattach()
-
getConnectionInfo
public ConnectionInfo getConnectionInfo()
-
getDatapathTypeEntry
public List<DatapathTypeEntry> getDatapathTypeEntry()
-
getDbVersion
public String getDbVersion()
-
getInterfaceTypeEntry
public List<InterfaceTypeEntry> getInterfaceTypeEntry()
-
getManagedNodeEntry
public List<ManagedNodeEntry> getManagedNodeEntry()
-
getManagerEntry
public List<ManagerEntry> getManagerEntry()
-
getOpenvswitchExternalIds
public List<OpenvswitchExternalIds> getOpenvswitchExternalIds()
-
getOpenvswitchOtherConfigs
public List<OpenvswitchOtherConfigs> getOpenvswitchOtherConfigs()
-
getOvsVersion
public String getOvsVersion()
-
getQosEntries
public List<QosEntries> getQosEntries()
-
setAutoattach
public OvsdbNodeAugmentationBuilder setAutoattach(List<Autoattach> values)
-
setConnectionInfo
public OvsdbNodeAugmentationBuilder setConnectionInfo(ConnectionInfo value)
-
setDatapathTypeEntry
public OvsdbNodeAugmentationBuilder setDatapathTypeEntry(List<DatapathTypeEntry> values)
-
setDbVersion
public OvsdbNodeAugmentationBuilder setDbVersion(String value)
-
setInterfaceTypeEntry
public OvsdbNodeAugmentationBuilder setInterfaceTypeEntry(List<InterfaceTypeEntry> values)
-
setManagedNodeEntry
public OvsdbNodeAugmentationBuilder setManagedNodeEntry(List<ManagedNodeEntry> values)
-
setManagerEntry
public OvsdbNodeAugmentationBuilder setManagerEntry(List<ManagerEntry> values)
-
setOpenvswitchExternalIds
public OvsdbNodeAugmentationBuilder setOpenvswitchExternalIds(List<OpenvswitchExternalIds> values)
-
setOpenvswitchOtherConfigs
public OvsdbNodeAugmentationBuilder setOpenvswitchOtherConfigs(List<OpenvswitchOtherConfigs> values)
-
setOvsVersion
public OvsdbNodeAugmentationBuilder setOvsVersion(String value)
-
setQosEntries
public OvsdbNodeAugmentationBuilder setQosEntries(List<QosEntries> values)
-
setQueues
public OvsdbNodeAugmentationBuilder setQueues(List<Queues> values)
-
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>
-
-