Class TunnelEndPointInfoBuilder
- java.lang.Object
-
- org.opendaylight.genius.itm.utils.TunnelEndPointInfoBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class TunnelEndPointInfoBuilder extends java.lang.ObjectBuilds instances of typeTunnelEndPointInfo. Initialize attributes and then invoke thebuild()method to create an immutable instance.TunnelEndPointInfoBuilderis 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 forTunnelEndPointInfoinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelEndPointInfobuild()Builds a newTunnelEndPointInfo.TunnelEndPointInfoBuilderfrom(TunnelEndPointInfo instance)Fill a builder with attribute values from the providedTunnelEndPointInfoinstance.TunnelEndPointInfoBuildersetDstEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64 dstEndPointInfo)Initializes the value for thedstEndPointInfoattribute.TunnelEndPointInfoBuildersetSrcEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64 srcEndPointInfo)Initializes the value for thesrcEndPointInfoattribute.
-
-
-
Constructor Detail
-
TunnelEndPointInfoBuilder
public TunnelEndPointInfoBuilder()
Creates a builder forTunnelEndPointInfoinstances.new TunnelEndPointInfoBuilder() .setSrcEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64) // requiredsrcEndPointInfo.setDstEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64) // requireddstEndPointInfo.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder from(TunnelEndPointInfo instance)
Fill a builder with attribute values from the providedTunnelEndPointInfoinstance. 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:
thisbuilder for use in a chained invocation
-
setSrcEndPointInfo
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder setSrcEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64 srcEndPointInfo)
Initializes the value for thesrcEndPointInfoattribute.- Parameters:
srcEndPointInfo- The value for srcEndPointInfo- Returns:
thisbuilder for use in a chained invocation
-
setDstEndPointInfo
@CanIgnoreReturnValue public final TunnelEndPointInfoBuilder setDstEndPointInfo(org.opendaylight.yangtools.yang.common.Uint64 dstEndPointInfo)
Initializes the value for thedstEndPointInfoattribute.- Parameters:
dstEndPointInfo- The value for dstEndPointInfo- Returns:
thisbuilder 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
-
-