public class StypeOpenflowBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<StypeOpenflow>
StypeOpenflowBuilder
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:
StypeOpenflowBuilder createTarget(int fooXyzzy, int barBaz) {
return new StypeOpenflowBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of StypeOpenflowBuilder, 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 methodStypeOpenflowBuilder
,
Builder
Constructor and Description |
---|
StypeOpenflowBuilder() |
StypeOpenflowBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.InstructionList arg) |
StypeOpenflowBuilder(ServiceOpenflowInfo arg) |
StypeOpenflowBuilder(StypeOpenflow base) |
Modifier and Type | Method and Description |
---|---|
StypeOpenflow |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getDispatcherTableId() |
BigInteger |
getFlowCookie() |
Integer |
getFlowPriority() |
List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> |
getInstruction() |
StypeOpenflowBuilder |
setDispatcherTableId(Short value) |
StypeOpenflowBuilder |
setFlowCookie(BigInteger value) |
StypeOpenflowBuilder |
setFlowPriority(Integer value) |
StypeOpenflowBuilder |
setInstruction(List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> values) |
public StypeOpenflowBuilder()
public StypeOpenflowBuilder(ServiceOpenflowInfo arg)
public StypeOpenflowBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.InstructionList arg)
public StypeOpenflowBuilder(StypeOpenflow base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic Short getDispatcherTableId()
public BigInteger getFlowCookie()
public Integer getFlowPriority()
public List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> getInstruction()
public StypeOpenflowBuilder setDispatcherTableId(Short value)
public StypeOpenflowBuilder setFlowCookie(BigInteger value)
public StypeOpenflowBuilder setFlowPriority(Integer value)
public StypeOpenflowBuilder setInstruction(List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> values)
public StypeOpenflow build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<StypeOpenflow,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.