Class TunnelStateInfoBuilder
- java.lang.Object
-
- org.opendaylight.genius.itm.utils.TunnelStateInfoBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class TunnelStateInfoBuilder extends java.lang.Object
Builds instances of typeTunnelStateInfo
. Initialize attributes and then invoke thebuild()
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 Summary
Constructors Constructor Description TunnelStateInfoBuilder()
Creates a builder forTunnelStateInfo
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelStateInfo
build()
Builds a newTunnelStateInfo
.TunnelStateInfoBuilder
from(TunnelStateInfo instance)
Fill a builder with attribute values from the providedTunnelStateInfo
instance.TunnelStateInfoBuilder
setDpnTepInterfaceInfo(@Nullable DpnTepInterfaceInfo dpnTepInterfaceInfo)
Initializes the value for thedpnTepInterfaceInfo
attribute.TunnelStateInfoBuilder
setDstDpnTepsInfo(@Nullable DPNTEPsInfo dstDpnTepsInfo)
Initializes the value for thedstDpnTepsInfo
attribute.TunnelStateInfoBuilder
setNodeConnectorInfo(NodeConnectorInfo nodeConnectorInfo)
Initializes the value for thenodeConnectorInfo
attribute.TunnelStateInfoBuilder
setSrcDpnTepsInfo(@Nullable DPNTEPsInfo srcDpnTepsInfo)
Initializes the value for thesrcDpnTepsInfo
attribute.TunnelStateInfoBuilder
setTunnelEndPointInfo(@Nullable TunnelEndPointInfo tunnelEndPointInfo)
Initializes the value for thetunnelEndPointInfo
attribute.
-
-
-
Constructor Detail
-
TunnelStateInfoBuilder
public TunnelStateInfoBuilder()
Creates a builder forTunnelStateInfo
instances.new TunnelStateInfoBuilder() .setNodeConnectorInfo(org.opendaylight.genius.itm.utils.NodeConnectorInfo) // required
nodeConnectorInfo
.setTunnelEndPointInfo(org.opendaylight.genius.itm.utils.@org.eclipse.jdt.annotation.Nullable TunnelEndPointInfo | null) // nullabletunnelEndPointInfo
.setDpnTepInterfaceInfo(org.opendaylight.genius.itm.utils.@org.eclipse.jdt.annotation.Nullable DpnTepInterfaceInfo | null) // nullabledpnTepInterfaceInfo
.setSrcDpnTepsInfo(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.@org.eclipse.jdt.annotation.Nullable DPNTEPsInfo | null) // nullablesrcDpnTepsInfo
.setDstDpnTepsInfo(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.@org.eclipse.jdt.annotation.Nullable DPNTEPsInfo | null) // nullabledstDpnTepsInfo
.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final TunnelStateInfoBuilder from(TunnelStateInfo instance)
Fill a builder with attribute values from the providedTunnelStateInfo
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setNodeConnectorInfo
@CanIgnoreReturnValue public final TunnelStateInfoBuilder setNodeConnectorInfo(NodeConnectorInfo nodeConnectorInfo)
Initializes the value for thenodeConnectorInfo
attribute.- Parameters:
nodeConnectorInfo
- The value for nodeConnectorInfo- Returns:
this
builder for use in a chained invocation
-
setTunnelEndPointInfo
@CanIgnoreReturnValue public final TunnelStateInfoBuilder setTunnelEndPointInfo(@Nullable TunnelEndPointInfo tunnelEndPointInfo)
Initializes the value for thetunnelEndPointInfo
attribute.- Parameters:
tunnelEndPointInfo
- The value for tunnelEndPointInfo (can benull
)- Returns:
this
builder for use in a chained invocation
-
setDpnTepInterfaceInfo
@CanIgnoreReturnValue public final TunnelStateInfoBuilder setDpnTepInterfaceInfo(@Nullable DpnTepInterfaceInfo dpnTepInterfaceInfo)
Initializes the value for thedpnTepInterfaceInfo
attribute.- Parameters:
dpnTepInterfaceInfo
- The value for dpnTepInterfaceInfo (can benull
)- Returns:
this
builder for use in a chained invocation
-
setSrcDpnTepsInfo
@CanIgnoreReturnValue public final TunnelStateInfoBuilder setSrcDpnTepsInfo(@Nullable DPNTEPsInfo srcDpnTepsInfo)
Initializes the value for thesrcDpnTepsInfo
attribute.- Parameters:
srcDpnTepsInfo
- The value for srcDpnTepsInfo (can benull
)- Returns:
this
builder for use in a chained invocation
-
setDstDpnTepsInfo
@CanIgnoreReturnValue public final TunnelStateInfoBuilder setDstDpnTepsInfo(@Nullable DPNTEPsInfo dstDpnTepsInfo)
Initializes the value for thedstDpnTepsInfo
attribute.- Parameters:
dstDpnTepsInfo
- The value for dstDpnTepsInfo (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public TunnelStateInfo build()
Builds a newTunnelStateInfo
.- Returns:
- An immutable instance of TunnelStateInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-