Class SubnetMapping.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.SubnetMapping.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetMapping>
- Enclosing interface:
SubnetMapping
@Stability(Stable)
public static final class SubnetMapping.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetMapping>
A builder for
SubnetMapping-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationId(String allocationId) Sets the value ofSubnetMapping.getAllocationId()build()Builds the configured instance.ipv6Address(String ipv6Address) Sets the value ofSubnetMapping.getIpv6Address()privateIpv4Address(String privateIpv4Address) Sets the value ofSubnetMapping.getPrivateIpv4Address()sourceNatIpv6Prefix(SourceNatIpv6Prefix sourceNatIpv6Prefix) Sets the value ofSubnetMapping.getSourceNatIpv6Prefix()Sets the value ofSubnetMapping.getSubnet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnet
Sets the value ofSubnetMapping.getSubnet()- Parameters:
subnet- The subnet. This parameter is required.- Returns:
this
-
allocationId
Sets the value ofSubnetMapping.getAllocationId()- Parameters:
allocationId- The allocation ID of the Elastic IP address for an internet-facing load balancer.- Returns:
this
-
ipv6Address
Sets the value ofSubnetMapping.getIpv6Address()- Parameters:
ipv6Address- The IPv6 address.- Returns:
this
-
privateIpv4Address
Sets the value ofSubnetMapping.getPrivateIpv4Address()- Parameters:
privateIpv4Address- The private IPv4 address for an internal load balancer.- Returns:
this
-
sourceNatIpv6Prefix
@Stability(Stable) public SubnetMapping.Builder sourceNatIpv6Prefix(SourceNatIpv6Prefix sourceNatIpv6Prefix) Sets the value ofSubnetMapping.getSourceNatIpv6Prefix()- Parameters:
sourceNatIpv6Prefix- The IPv6 prefix to use for source NAT for a dual-stack network load balancer with UDP listeners. Specify an IPv6 prefix (/80 netmask) from the subnet CIDR block orSourceNatIpv6Prefix.autoAssigned()to use an IPv6 prefix selected at random from the subnet CIDR block.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SubnetMapping>- Returns:
- a new instance of
SubnetMapping - Throws:
NullPointerException- if any required attribute was not provided
-