@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class SouthboundInterfaceInfoBuilder extends Object
SouthboundInterfaceInfo
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
SouthboundInterfaceInfoBuilder
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 |
---|
SouthboundInterfaceInfoBuilder()
Creates a builder for
SouthboundInterfaceInfo instances. |
Modifier and Type | Method and Description |
---|---|
SouthboundInterfaceInfo |
build()
Builds a new
SouthboundInterfaceInfo . |
SouthboundInterfaceInfoBuilder |
from(SouthboundInterfaceInfo instance)
Fill a builder with attribute values from the provided
SouthboundInterfaceInfo instance. |
SouthboundInterfaceInfoBuilder |
setInterfaceName(Optional<String> interfaceName)
Initializes the optional value
interfaceName to interfaceName. |
SouthboundInterfaceInfoBuilder |
setInterfaceName(String interfaceName)
Initializes the optional value
interfaceName to interfaceName. |
SouthboundInterfaceInfoBuilder |
setIsServiceGateway(boolean isServiceGateway)
Initializes the optional value
isServiceGateway to isServiceGateway. |
SouthboundInterfaceInfoBuilder |
setIsServiceGateway(Optional<Boolean> isServiceGateway)
Initializes the optional value
isServiceGateway to isServiceGateway. |
SouthboundInterfaceInfoBuilder |
setMacAddress(Optional<String> macAddress)
Initializes the optional value
macAddress to macAddress. |
SouthboundInterfaceInfoBuilder |
setMacAddress(String macAddress)
Initializes the optional value
macAddress to macAddress. |
SouthboundInterfaceInfoBuilder |
setNodeIp(Optional<String> nodeIp)
Initializes the optional value
nodeIp to nodeIp. |
SouthboundInterfaceInfoBuilder |
setNodeIp(String nodeIp)
Initializes the optional value
nodeIp to nodeIp. |
public SouthboundInterfaceInfoBuilder()
SouthboundInterfaceInfo
instances.@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder from(SouthboundInterfaceInfo instance)
SouthboundInterfaceInfo
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 SouthboundInterfaceInfoBuilder setInterfaceName(String interfaceName)
interfaceName
to interfaceName.interfaceName
- The value for interfaceNamethis
builder for chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setInterfaceName(Optional<String> interfaceName)
interfaceName
to interfaceName.interfaceName
- The value for interfaceNamethis
builder for use in a chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setMacAddress(String macAddress)
macAddress
to macAddress.macAddress
- The value for macAddressthis
builder for chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setMacAddress(Optional<String> macAddress)
macAddress
to macAddress.macAddress
- The value for macAddressthis
builder for use in a chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setNodeIp(String nodeIp)
nodeIp
to nodeIp.nodeIp
- The value for nodeIpthis
builder for chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setNodeIp(Optional<String> nodeIp)
nodeIp
to nodeIp.nodeIp
- The value for nodeIpthis
builder for use in a chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setIsServiceGateway(boolean isServiceGateway)
isServiceGateway
to isServiceGateway.isServiceGateway
- The value for isServiceGatewaythis
builder for chained invocation@CanIgnoreReturnValue public final SouthboundInterfaceInfoBuilder setIsServiceGateway(Optional<Boolean> isServiceGateway)
isServiceGateway
to isServiceGateway.isServiceGateway
- The value for isServiceGatewaythis
builder for use in a chained invocationpublic SouthboundInterfaceInfo build()
SouthboundInterfaceInfo
.IllegalStateException
- if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.