@Generated(value="org.immutables.processor.ProxyProcessor") public final class DpnTepInterfaceInfoBuilder extends Object
DpnTepInterfaceInfo.
Initialize attributes and then invoke the build() 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 and Description |
|---|
DpnTepInterfaceInfoBuilder()
Creates a builder for
DpnTepInterfaceInfo instances. |
| Modifier and Type | Method and Description |
|---|---|
DpnTepInterfaceInfo |
build()
Builds a new
DpnTepInterfaceInfo. |
DpnTepInterfaceInfoBuilder |
from(DpnTepInterfaceInfo instance)
Fill a builder with attribute values from the provided
DpnTepInterfaceInfo instance. |
DpnTepInterfaceInfoBuilder |
setIsInternal(boolean isInternal)
Initializes the value for the
isInternal attribute. |
DpnTepInterfaceInfoBuilder |
setIsMonitoringEnabled(boolean isMonitoringEnabled)
Initializes the value for the
isMonitoringEnabled attribute. |
DpnTepInterfaceInfoBuilder |
setRemoteDPN(BigInteger remoteDPN)
Initializes the value for the
remoteDPN attribute. |
DpnTepInterfaceInfoBuilder |
setTunnelName(String tunnelName)
Initializes the value for the
tunnelName attribute. |
DpnTepInterfaceInfoBuilder |
setTunnelType(Class<? extends TunnelTypeBase> tunnelType)
Initializes the value for the
tunnelType attribute. |
public DpnTepInterfaceInfoBuilder()
DpnTepInterfaceInfo instances.
new DpnTepInterfaceInfoBuilder()
.setTunnelType(Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase>) // required tunnelType
.setTunnelName(String) // required tunnelName
.setIsMonitoringEnabled(boolean) // required isMonitoringEnabled
.setIsInternal(boolean) // required isInternal
.setRemoteDPN(java.math.BigInteger) // required remoteDPN
.build();
@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder from(DpnTepInterfaceInfo instance)
DpnTepInterfaceInfo 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 DpnTepInterfaceInfoBuilder setTunnelType(Class<? extends TunnelTypeBase> tunnelType)
tunnelType attribute.tunnelType - The value for tunnelTypethis builder for use in a chained invocation@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setTunnelName(String tunnelName)
tunnelName attribute.tunnelName - The value for tunnelNamethis builder for use in a chained invocation@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setIsMonitoringEnabled(boolean isMonitoringEnabled)
isMonitoringEnabled attribute.isMonitoringEnabled - The value for isMonitoringEnabledthis builder for use in a chained invocation@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setIsInternal(boolean isInternal)
isInternal attribute.isInternal - The value for isInternalthis builder for use in a chained invocation@CanIgnoreReturnValue public final DpnTepInterfaceInfoBuilder setRemoteDPN(BigInteger remoteDPN)
remoteDPN attribute.remoteDPN - The value for remoteDPNthis builder for use in a chained invocationpublic DpnTepInterfaceInfo build()
DpnTepInterfaceInfo.IllegalStateException - if any required attributes are missingCopyright © 2020 OpenDaylight. All rights reserved.