public class FlowCapableNodeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowCapableNode>
FlowCapableNodeBuilder
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:
FlowCapableNodeBuilder createTarget(int fooXyzzy, int barBaz) {
return new FlowCapableNodeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of FlowCapableNodeBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build()
, which is then returned from the methodFlowCapableNodeBuilder
,
Builder
Constructor and Description |
---|
FlowCapableNodeBuilder() |
FlowCapableNodeBuilder(Desc arg) |
FlowCapableNodeBuilder(FlowCapableNode base) |
FlowCapableNodeBuilder(FlowNode arg) |
FlowCapableNodeBuilder(Groups arg) |
FlowCapableNodeBuilder(IpAddressGrouping arg) |
FlowCapableNodeBuilder(Meters arg) |
FlowCapableNodeBuilder(PortNumberGrouping arg) |
FlowCapableNodeBuilder(TableFeatures arg) |
FlowCapableNodeBuilder(Tables arg) |
public FlowCapableNodeBuilder()
public FlowCapableNodeBuilder(FlowNode arg)
public FlowCapableNodeBuilder(Desc arg)
public FlowCapableNodeBuilder(TableFeatures arg)
public FlowCapableNodeBuilder(Groups arg)
public FlowCapableNodeBuilder(Tables arg)
public FlowCapableNodeBuilder(PortNumberGrouping arg)
public FlowCapableNodeBuilder(Meters arg)
public FlowCapableNodeBuilder(IpAddressGrouping arg)
public FlowCapableNodeBuilder(FlowCapableNode base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic String getDescription()
public String getHardware()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
public String getManufacturer()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumber()
public String getSerialNumber()
public String getSoftware()
public List<StaleGroup> getStaleGroup()
public List<StaleMeter> getStaleMeter()
public SupportedActions getSupportedActions()
public SupportedInstructions getSupportedInstructions()
public SupportedMatchTypes getSupportedMatchTypes()
public SwitchFeatures getSwitchFeatures()
public List<TableFeatures> getTableFeatures()
public FlowCapableNodeBuilder setDescription(String value)
public FlowCapableNodeBuilder setGroup(List<Group> values)
public FlowCapableNodeBuilder setHardware(String value)
public FlowCapableNodeBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public FlowCapableNodeBuilder setManufacturer(String value)
public FlowCapableNodeBuilder setMeter(List<Meter> values)
public FlowCapableNodeBuilder setPortNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
public FlowCapableNodeBuilder setSerialNumber(String value)
public FlowCapableNodeBuilder setSoftware(String value)
public FlowCapableNodeBuilder setStaleGroup(List<StaleGroup> values)
public FlowCapableNodeBuilder setStaleMeter(List<StaleMeter> values)
public FlowCapableNodeBuilder setSupportedActions(SupportedActions value)
public FlowCapableNodeBuilder setSupportedInstructions(SupportedInstructions value)
public FlowCapableNodeBuilder setSupportedMatchTypes(SupportedMatchTypes value)
public FlowCapableNodeBuilder setSwitchFeatures(SwitchFeatures value)
public FlowCapableNodeBuilder setTable(List<Table> values)
public FlowCapableNodeBuilder setTableFeatures(List<TableFeatures> values)
public FlowCapableNode build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<FlowCapableNode,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.