Class CfnLoadBalancer.SubnetMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnLoadBalancer.SubnetMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancer.SubnetMappingProperty>
- Enclosing interface:
- CfnLoadBalancer.SubnetMappingProperty
@Stability(Stable)
public static final class CfnLoadBalancer.SubnetMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancer.SubnetMappingProperty>
A builder for
CfnLoadBalancer.SubnetMappingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocationId
(String allocationId) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getAllocationId()
build()
Builds the configured instance.iPv6Address
(String iPv6Address) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getIPv6Address()
privateIPv4Address
(String privateIPv4Address) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getPrivateIPv4Address()
Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetId
Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet. This parameter is required.- Returns:
this
-
allocationId
@Stability(Stable) public CfnLoadBalancer.SubnetMappingProperty.Builder allocationId(String allocationId) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getAllocationId()
- Parameters:
allocationId
- [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.- Returns:
this
-
iPv6Address
@Stability(Stable) public CfnLoadBalancer.SubnetMappingProperty.Builder iPv6Address(String iPv6Address) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getIPv6Address()
- Parameters:
iPv6Address
- [Network Load Balancers] The IPv6 address.- Returns:
this
-
privateIPv4Address
@Stability(Stable) public CfnLoadBalancer.SubnetMappingProperty.Builder privateIPv4Address(String privateIPv4Address) Sets the value ofCfnLoadBalancer.SubnetMappingProperty.getPrivateIPv4Address()
- Parameters:
privateIPv4Address
- [Network Load Balancers] The private IPv4 address for an internal load balancer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoadBalancer.SubnetMappingProperty>
- Returns:
- a new instance of
CfnLoadBalancer.SubnetMappingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-