Class TunnelEndPointInfoBuilder
- java.lang.Object
-
- org.opendaylight.genius.itm.utils.TunnelEndPointInfoBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class TunnelEndPointInfoBuilder extends java.lang.Object
Builds instances of typeTunnelEndPointInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.TunnelEndPointInfoBuilder
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 TunnelEndPointInfoBuilder()
Creates a builder forTunnelEndPointInfo
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelEndPointInfo
build()
Builds a newTunnelEndPointInfo
.TunnelEndPointInfoBuilder
from(TunnelEndPointInfo instance)
Fill a builder with attribute values from the providedTunnelEndPointInfo
instance.TunnelEndPointInfoBuilder
setDstEndPointInfo(java.lang.String dstEndPointInfo)
Initializes the value for thedstEndPointInfo
attribute.TunnelEndPointInfoBuilder
setSrcEndPointInfo(java.lang.String srcEndPointInfo)
Initializes the value for thesrcEndPointInfo
attribute.
-
-
-
Constructor Detail
-
TunnelEndPointInfoBuilder
public TunnelEndPointInfoBuilder()
Creates a builder forTunnelEndPointInfo
instances.new TunnelEndPointInfoBuilder() .setSrcEndPointInfo(String) // required
srcEndPointInfo
.setDstEndPointInfo(String) // requireddstEndPointInfo
.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder from(TunnelEndPointInfo instance)
Fill a builder with attribute values from the providedTunnelEndPointInfo
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
-
setSrcEndPointInfo
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder setSrcEndPointInfo(java.lang.String srcEndPointInfo)
Initializes the value for thesrcEndPointInfo
attribute.- Parameters:
srcEndPointInfo
- The value for srcEndPointInfo- Returns:
this
builder for use in a chained invocation
-
setDstEndPointInfo
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder setDstEndPointInfo(java.lang.String dstEndPointInfo)
Initializes the value for thedstEndPointInfo
attribute.- Parameters:
dstEndPointInfo
- The value for dstEndPointInfo- Returns:
this
builder for use in a chained invocation
-
build
public TunnelEndPointInfo build()
Builds a newTunnelEndPointInfo
.- Returns:
- An immutable instance of TunnelEndPointInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-