Class FlowCapableNodeUpdatedBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeUpdatedBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
,org.opendaylight.yangtools.concepts.CheckedBuilder<FlowCapableNodeUpdated,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
@Generated("mdsal-binding-generator") public class FlowCapableNodeUpdatedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
Class that buildsFlowCapableNodeUpdatedBuilder
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:
FlowCapableNodeUpdatedBuilder createTarget(int fooXyzzy, int barBaz) { return new FlowCapableNodeUpdatedBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of FlowCapableNodeUpdatedBuilder, 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:
FlowCapableNodeUpdatedBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description FlowCapableNodeUpdatedBuilder()
FlowCapableNodeUpdatedBuilder(Desc arg)
FlowCapableNodeUpdatedBuilder(FlowCapableNodeUpdated base)
FlowCapableNodeUpdatedBuilder(FlowNode arg)
FlowCapableNodeUpdatedBuilder(IpAddressGrouping arg)
FlowCapableNodeUpdatedBuilder(Meters arg)
FlowCapableNodeUpdatedBuilder(PortNumberGrouping arg)
FlowCapableNodeUpdatedBuilder(Tables arg)
FlowCapableNodeUpdatedBuilder(Groups arg)
FlowCapableNodeUpdatedBuilder(TableFeatures arg)
-
Method Summary
-
-
-
Constructor Detail
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder()
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(FlowNode arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Desc arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Tables arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(TableFeatures arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Groups arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Meters arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(IpAddressGrouping arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(PortNumberGrouping arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(FlowCapableNodeUpdated 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.flow.inventory.rev130819.Desc
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Meters
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.PortNumberGrouping
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.IpAddressGrouping
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Tables
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowNode
- org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableFeatures
- org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.Groups
- Parameters:
arg
- grouping object- Throws:
IllegalArgumentException
- if given argument is none of valid types or has property with incompatible value
-
getDescription
public String getDescription()
-
getHardware
public String getHardware()
-
getIpAddress
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
-
getManufacturer
public String getManufacturer()
-
getPortNumber
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumber()
-
getSerialNumber
public String getSerialNumber()
-
getSoftware
public String getSoftware()
-
getStaleGroup
public Map<StaleGroupKey,StaleGroup> getStaleGroup()
-
getStaleMeter
public Map<StaleMeterKey,StaleMeter> getStaleMeter()
-
getSupportedActions
public SupportedActions getSupportedActions()
-
getSupportedInstructions
public SupportedInstructions getSupportedInstructions()
-
getSupportedMatchTypes
public SupportedMatchTypes getSupportedMatchTypes()
-
getSwitchFeatures
public SwitchFeatures getSwitchFeatures()
-
getTableFeatures
public Map<TableFeaturesKey,TableFeatures> getTableFeatures()
-
setDescription
public FlowCapableNodeUpdatedBuilder setDescription(String value)
-
setGroup
public FlowCapableNodeUpdatedBuilder setGroup(Map<GroupKey,Group> values)
-
setGroup
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setGroup(List<Group> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetGroup(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
-
setHardware
public FlowCapableNodeUpdatedBuilder setHardware(String value)
-
setIpAddress
public FlowCapableNodeUpdatedBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
-
setManufacturer
public FlowCapableNodeUpdatedBuilder setManufacturer(String value)
-
setMeter
public FlowCapableNodeUpdatedBuilder setMeter(Map<MeterKey,Meter> values)
-
setMeter
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setMeter(List<Meter> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetMeter(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
-
setPortNumber
public FlowCapableNodeUpdatedBuilder setPortNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
-
setSerialNumber
public FlowCapableNodeUpdatedBuilder setSerialNumber(String value)
-
setSoftware
public FlowCapableNodeUpdatedBuilder setSoftware(String value)
-
setStaleGroup
public FlowCapableNodeUpdatedBuilder setStaleGroup(Map<StaleGroupKey,StaleGroup> values)
-
setStaleGroup
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setStaleGroup(List<StaleGroup> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetStaleGroup(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
-
setStaleMeter
public FlowCapableNodeUpdatedBuilder setStaleMeter(Map<StaleMeterKey,StaleMeter> values)
-
setStaleMeter
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setStaleMeter(List<StaleMeter> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetStaleMeter(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
-
setSupportedActions
public FlowCapableNodeUpdatedBuilder setSupportedActions(SupportedActions value)
-
setSupportedInstructions
public FlowCapableNodeUpdatedBuilder setSupportedInstructions(SupportedInstructions value)
-
setSupportedMatchTypes
public FlowCapableNodeUpdatedBuilder setSupportedMatchTypes(SupportedMatchTypes value)
-
setSwitchFeatures
public FlowCapableNodeUpdatedBuilder setSwitchFeatures(SwitchFeatures value)
-
setTable
public FlowCapableNodeUpdatedBuilder setTable(Map<TableKey,Table> values)
-
setTable
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setTable(List<Table> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetTable(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
-
setTableFeatures
public FlowCapableNodeUpdatedBuilder setTableFeatures(Map<TableFeaturesKey,TableFeatures> values)
-
setTableFeatures
@Deprecated(forRemoval=true) public FlowCapableNodeUpdatedBuilder setTableFeatures(List<TableFeatures> values)
Deprecated, for removal: This API element is subject to removal in a future version.UsesetTableFeatures(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 FlowCapableNodeUpdated build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<FlowCapableNodeUpdated,IllegalArgumentException>
-
-