@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class FlowEntityBuilder extends FlowEntity.Builder
FlowEntity
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
FlowEntityBuilder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Constructor and Description |
---|
FlowEntityBuilder()
Creates a builder for
FlowEntity instances. |
Modifier and Type | Method and Description |
---|---|
FlowEntityBuilder |
addAllInstructionInfoList(Iterable<? extends InstructionInfo> elements)
Adds elements to
instructionInfoList list. |
FlowEntityBuilder |
addAllMatchInfoList(Iterable<? extends MatchInfoBase> elements)
Adds elements to
matchInfoList list. |
FlowEntityBuilder |
addInstructionInfoList(InstructionInfo... elements)
Adds elements to
instructionInfoList list. |
FlowEntityBuilder |
addInstructionInfoList(InstructionInfo element)
Adds one element to
instructionInfoList list. |
FlowEntityBuilder |
addMatchInfoList(MatchInfoBase... elements)
Adds elements to
matchInfoList list. |
FlowEntityBuilder |
addMatchInfoList(MatchInfoBase element)
Adds one element to
matchInfoList list. |
FlowEntity |
build()
Builds a new
FlowEntity . |
FlowEntityBuilder |
from(AbstractSwitchEntity instance)
Fill a builder with attribute values from the provided
org.opendaylight.genius.mdsalutil.AbstractSwitchEntity instance. |
FlowEntityBuilder |
from(FlowEntity instance)
Fill a builder with attribute values from the provided
org.opendaylight.genius.mdsalutil.FlowEntity instance. |
FlowEntityBuilder |
setCookie(BigInteger cookie)
Initializes the value for the
cookie attribute. |
FlowEntityBuilder |
setDpnId(BigInteger dpnId)
Initializes the value for the
dpnId attribute. |
FlowEntityBuilder |
setFlowId(String flowId)
Initializes the value for the
flowId attribute. |
FlowEntityBuilder |
setFlowName(String flowName)
Initializes the value for the
flowName attribute. |
FlowEntityBuilder |
setHardTimeOut(int hardTimeOut)
Initializes the value for the
hardTimeOut attribute. |
FlowEntityBuilder |
setIdleTimeOut(int idleTimeOut)
Initializes the value for the
idleTimeOut attribute. |
FlowEntityBuilder |
setInstructionInfoList(Iterable<? extends InstructionInfo> elements)
Sets or replaces all elements for
instructionInfoList list. |
FlowEntityBuilder |
setMatchInfoList(Iterable<? extends MatchInfoBase> elements)
Sets or replaces all elements for
matchInfoList list. |
FlowEntityBuilder |
setPriority(int priority)
Initializes the value for the
priority attribute. |
FlowEntityBuilder |
setSendFlowRemFlag(boolean sendFlowRemFlag)
Initializes the value for the
sendFlowRemFlag attribute. |
FlowEntityBuilder |
setStrictFlag(boolean strictFlag)
Initializes the value for the
strictFlag attribute. |
FlowEntityBuilder |
setTableId(short tableId)
Initializes the value for the
tableId attribute. |
public FlowEntityBuilder()
FlowEntity
instances.@CanIgnoreReturnValue public final FlowEntityBuilder from(AbstractSwitchEntity instance)
org.opendaylight.genius.mdsalutil.AbstractSwitchEntity
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder from(FlowEntity instance)
org.opendaylight.genius.mdsalutil.FlowEntity
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setCookie(BigInteger cookie)
cookie
attribute.
If not set, this attribute will have a default value as returned by the initializer of cookie
.
cookie
- The value for cookiethis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setFlowId(String flowId)
flowId
attribute.flowId
- The value for flowIdthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setFlowName(String flowName)
flowName
attribute.flowName
- The value for flowName (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setHardTimeOut(int hardTimeOut)
hardTimeOut
attribute.
If not set, this attribute will have a default value as returned by the initializer of hardTimeOut
.
hardTimeOut
- The value for hardTimeOutthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setIdleTimeOut(int idleTimeOut)
idleTimeOut
attribute.
If not set, this attribute will have a default value as returned by the initializer of idleTimeOut
.
idleTimeOut
- The value for idleTimeOutthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addInstructionInfoList(InstructionInfo element)
instructionInfoList
list.element
- A instructionInfoList elementthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addInstructionInfoList(InstructionInfo... elements)
instructionInfoList
list.elements
- An array of instructionInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setInstructionInfoList(Iterable<? extends InstructionInfo> elements)
instructionInfoList
list.elements
- An iterable of instructionInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addAllInstructionInfoList(Iterable<? extends InstructionInfo> elements)
instructionInfoList
list.elements
- An iterable of instructionInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addMatchInfoList(MatchInfoBase element)
matchInfoList
list.element
- A matchInfoList elementthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addMatchInfoList(MatchInfoBase... elements)
matchInfoList
list.elements
- An array of matchInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setMatchInfoList(Iterable<? extends MatchInfoBase> elements)
matchInfoList
list.elements
- An iterable of matchInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder addAllMatchInfoList(Iterable<? extends MatchInfoBase> elements)
matchInfoList
list.elements
- An iterable of matchInfoList elementsthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setPriority(int priority)
priority
attribute.
If not set, this attribute will have a default value as returned by the initializer of priority
.
priority
- The value for prioritythis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setSendFlowRemFlag(boolean sendFlowRemFlag)
sendFlowRemFlag
attribute.
If not set, this attribute will have a default value as returned by the initializer of sendFlowRemFlag
.
sendFlowRemFlag
- The value for sendFlowRemFlagthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setStrictFlag(boolean strictFlag)
strictFlag
attribute.
If not set, this attribute will have a default value as returned by the initializer of strictFlag
.
strictFlag
- The value for strictFlagthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setTableId(short tableId)
tableId
attribute.tableId
- The value for tableIdthis
builder for use in a chained invocation@CanIgnoreReturnValue public final FlowEntityBuilder setDpnId(BigInteger dpnId)
dpnId
attribute.dpnId
- The value for dpnIdthis
builder for use in a chained invocationpublic FlowEntity build()
FlowEntity
.IllegalStateException
- if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.