@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class TunnelStateInfoBuilder extends Object
TunnelStateInfo
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
TunnelStateInfoBuilder
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 |
---|
TunnelStateInfoBuilder()
Creates a builder for
TunnelStateInfo instances. |
Modifier and Type | Method and Description |
---|---|
TunnelStateInfo |
build()
Builds a new
TunnelStateInfo . |
TunnelStateInfoBuilder |
from(TunnelStateInfo instance)
Fill a builder with attribute values from the provided
TunnelStateInfo instance. |
TunnelStateInfoBuilder |
setDpnTepInterfaceInfo(DpnTepInterfaceInfo dpnTepInterfaceInfo)
Initializes the value for the
dpnTepInterfaceInfo attribute. |
TunnelStateInfoBuilder |
setDstDpnTepsInfo(DPNTEPsInfo dstDpnTepsInfo)
Initializes the value for the
dstDpnTepsInfo attribute. |
TunnelStateInfoBuilder |
setNodeConnectorInfo(NodeConnectorInfo nodeConnectorInfo)
Initializes the value for the
nodeConnectorInfo attribute. |
TunnelStateInfoBuilder |
setSrcDpnTepsInfo(DPNTEPsInfo srcDpnTepsInfo)
Initializes the value for the
srcDpnTepsInfo attribute. |
TunnelStateInfoBuilder |
setTunnelEndPointInfo(TunnelEndPointInfo tunnelEndPointInfo)
Initializes the value for the
tunnelEndPointInfo attribute. |
public TunnelStateInfoBuilder()
TunnelStateInfo
instances.@CanIgnoreReturnValue public final TunnelStateInfoBuilder from(TunnelStateInfo instance)
TunnelStateInfo
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final TunnelStateInfoBuilder setNodeConnectorInfo(NodeConnectorInfo nodeConnectorInfo)
nodeConnectorInfo
attribute.nodeConnectorInfo
- The value for nodeConnectorInfothis
builder for use in a chained invocation@CanIgnoreReturnValue public final TunnelStateInfoBuilder setTunnelEndPointInfo(TunnelEndPointInfo tunnelEndPointInfo)
tunnelEndPointInfo
attribute.tunnelEndPointInfo
- The value for tunnelEndPointInfo (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final TunnelStateInfoBuilder setDpnTepInterfaceInfo(DpnTepInterfaceInfo dpnTepInterfaceInfo)
dpnTepInterfaceInfo
attribute.dpnTepInterfaceInfo
- The value for dpnTepInterfaceInfo (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final TunnelStateInfoBuilder setSrcDpnTepsInfo(DPNTEPsInfo srcDpnTepsInfo)
srcDpnTepsInfo
attribute.srcDpnTepsInfo
- The value for srcDpnTepsInfo (can be null
)this
builder for use in a chained invocation@CanIgnoreReturnValue public final TunnelStateInfoBuilder setDstDpnTepsInfo(DPNTEPsInfo dstDpnTepsInfo)
dstDpnTepsInfo
attribute.dstDpnTepsInfo
- The value for dstDpnTepsInfo (can be null
)this
builder for use in a chained invocationpublic TunnelStateInfo build()
TunnelStateInfo
.IllegalStateException
- if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.