Class Ipv6PoolSecondaryAddressProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.Ipv6PoolSecondaryAddressProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Ipv6PoolSecondaryAddressProps>
- Enclosing interface:
Ipv6PoolSecondaryAddressProps
@Stability(Experimental)
public static final class Ipv6PoolSecondaryAddressProps.Builder
extends Object
implements software.amazon.jsii.Builder<Ipv6PoolSecondaryAddressProps>
A builder for
Ipv6PoolSecondaryAddressProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cidrBlockName(String cidrBlockName) Sets the value ofSecondaryAddressProps.getCidrBlockName()ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofIpv6PoolSecondaryAddressProps.getIpv6CidrBlock()ipv6PoolId(String ipv6PoolId) Sets the value ofIpv6PoolSecondaryAddressProps.getIpv6PoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipv6CidrBlock
@Stability(Experimental) public Ipv6PoolSecondaryAddressProps.Builder ipv6CidrBlock(String ipv6CidrBlock) Sets the value ofIpv6PoolSecondaryAddressProps.getIpv6CidrBlock()- Parameters:
ipv6CidrBlock- A valid IPv6 CIDR block from the IPv6 address pool onboarded to AWS using BYOIP. This parameter is required. The most specific IPv6 address range that you can bring is /48 for CIDRs that are publicly advertisable and /56 for CIDRs that are not publicly advertisable.- Returns:
this
-
ipv6PoolId
Sets the value ofIpv6PoolSecondaryAddressProps.getIpv6PoolId()- Parameters:
ipv6PoolId- ID of the IPv6 address pool from which to allocate the IPv6 CIDR block. This parameter is required. Note: BYOIP Pool ID is different from the IPAM Pool ID. To onboard your IPv6 address range to your AWS account please refer to the below documentation- Returns:
this
-
cidrBlockName
@Stability(Experimental) public Ipv6PoolSecondaryAddressProps.Builder cidrBlockName(String cidrBlockName) Sets the value ofSecondaryAddressProps.getCidrBlockName()- Parameters:
cidrBlockName- Required to set Secondary cidr block resource name in order to generate unique logical id for the resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Ipv6PoolSecondaryAddressProps>- Returns:
- a new instance of
Ipv6PoolSecondaryAddressProps - Throws:
NullPointerException- if any required attribute was not provided
-