Class DpnTepInterfaceInfoBuilder
- java.lang.Object
-
- org.opendaylight.genius.itm.utils.DpnTepInterfaceInfoBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class DpnTepInterfaceInfoBuilder extends java.lang.Object
Builds instances of typeDpnTepInterfaceInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.DpnTepInterfaceInfoBuilder
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 DpnTepInterfaceInfoBuilder()
Creates a builder forDpnTepInterfaceInfo
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DpnTepInterfaceInfo
build()
Builds a newDpnTepInterfaceInfo
.DpnTepInterfaceInfoBuilder
from(DpnTepInterfaceInfo instance)
Fill a builder with attribute values from the providedDpnTepInterfaceInfo
instance.DpnTepInterfaceInfoBuilder
setIsInternal(boolean isInternal)
Initializes the value for theisInternal
attribute.DpnTepInterfaceInfoBuilder
setIsMonitoringEnabled(boolean isMonitoringEnabled)
Initializes the value for theisMonitoringEnabled
attribute.DpnTepInterfaceInfoBuilder
setRemoteDPN(org.opendaylight.yangtools.yang.common.Uint64 remoteDPN)
Initializes the value for theremoteDPN
attribute.DpnTepInterfaceInfoBuilder
setTunnelName(java.lang.String tunnelName)
Initializes the value for thetunnelName
attribute.DpnTepInterfaceInfoBuilder
setTunnelType(java.lang.Class<? extends TunnelTypeBase> tunnelType)
Initializes the value for thetunnelType
attribute.
-
-
-
Constructor Detail
-
DpnTepInterfaceInfoBuilder
public DpnTepInterfaceInfoBuilder()
Creates a builder forDpnTepInterfaceInfo
instances.new DpnTepInterfaceInfoBuilder() .setTunnelType(Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase>) // required
tunnelType
.setTunnelName(String) // requiredtunnelName
.setIsMonitoringEnabled(boolean) // requiredisMonitoringEnabled
.setIsInternal(boolean) // requiredisInternal
.setRemoteDPN(org.opendaylight.yangtools.yang.common.Uint64) // requiredremoteDPN
.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder from(DpnTepInterfaceInfo instance)
Fill a builder with attribute values from the providedDpnTepInterfaceInfo
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
-
setTunnelType
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setTunnelType(java.lang.Class<? extends TunnelTypeBase> tunnelType)
Initializes the value for thetunnelType
attribute.- Parameters:
tunnelType
- The value for tunnelType- Returns:
this
builder for use in a chained invocation
-
setTunnelName
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setTunnelName(java.lang.String tunnelName)
Initializes the value for thetunnelName
attribute.- Parameters:
tunnelName
- The value for tunnelName- Returns:
this
builder for use in a chained invocation
-
setIsMonitoringEnabled
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setIsMonitoringEnabled(boolean isMonitoringEnabled)
Initializes the value for theisMonitoringEnabled
attribute.- Parameters:
isMonitoringEnabled
- The value for isMonitoringEnabled- Returns:
this
builder for use in a chained invocation
-
setIsInternal
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setIsInternal(boolean isInternal)
Initializes the value for theisInternal
attribute.- Parameters:
isInternal
- The value for isInternal- Returns:
this
builder for use in a chained invocation
-
setRemoteDPN
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setRemoteDPN(org.opendaylight.yangtools.yang.common.Uint64 remoteDPN)
Initializes the value for theremoteDPN
attribute.- Parameters:
remoteDPN
- The value for remoteDPN- Returns:
this
builder for use in a chained invocation
-
build
public DpnTepInterfaceInfo build()
Builds a newDpnTepInterfaceInfo
.- Returns:
- An immutable instance of DpnTepInterfaceInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-