Class VPCCidrBlockattributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VPCCidrBlockattributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VPCCidrBlockattributes>
- Enclosing interface:
VPCCidrBlockattributes
@Stability(Experimental)
public static final class VPCCidrBlockattributes.Builder
extends Object
implements software.amazon.jsii.Builder<VPCCidrBlockattributes>
A builder for
VPCCidrBlockattributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamazonProvidedIpv6CidrBlock
(Boolean amazonProvidedIpv6CidrBlock) Sets the value ofVPCCidrBlockattributes.getAmazonProvidedIpv6CidrBlock()
build()
Builds the configured instance.Sets the value ofVPCCidrBlockattributes.getCidrBlock()
cidrBlockName
(String cidrBlockName) Sets the value ofVPCCidrBlockattributes.getCidrBlockName()
ipv4IpamPoolId
(String ipv4IpamPoolId) Sets the value ofVPCCidrBlockattributes.getIpv4IpamPoolId()
ipv4IpamProvisionedCidrs
(List<String> ipv4IpamProvisionedCidrs) Sets the value ofVPCCidrBlockattributes.getIpv4IpamProvisionedCidrs()
ipv4NetmaskLength
(Number ipv4NetmaskLength) Sets the value ofVPCCidrBlockattributes.getIpv4NetmaskLength()
ipv6IpamPoolId
(String ipv6IpamPoolId) Sets the value ofVPCCidrBlockattributes.getIpv6IpamPoolId()
ipv6NetmaskLength
(Number ipv6NetmaskLength) Sets the value ofVPCCidrBlockattributes.getIpv6NetmaskLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amazonProvidedIpv6CidrBlock
@Stability(Experimental) public VPCCidrBlockattributes.Builder amazonProvidedIpv6CidrBlock(Boolean amazonProvidedIpv6CidrBlock) Sets the value ofVPCCidrBlockattributes.getAmazonProvidedIpv6CidrBlock()
- Parameters:
amazonProvidedIpv6CidrBlock
- Amazon Provided Ipv6.- Returns:
this
-
cidrBlock
Sets the value ofVPCCidrBlockattributes.getCidrBlock()
- Parameters:
cidrBlock
- The secondary IPv4 CIDR Block.- Returns:
this
-
cidrBlockName
Sets the value ofVPCCidrBlockattributes.getCidrBlockName()
- Parameters:
cidrBlockName
- The secondary IPv4 CIDR Block.- Returns:
this
-
ipv4IpamPoolId
@Stability(Experimental) public VPCCidrBlockattributes.Builder ipv4IpamPoolId(String ipv4IpamPoolId) Sets the value ofVPCCidrBlockattributes.getIpv4IpamPoolId()
- Parameters:
ipv4IpamPoolId
- IPAM pool for IPv4 address type.- Returns:
this
-
ipv4IpamProvisionedCidrs
@Stability(Experimental) public VPCCidrBlockattributes.Builder ipv4IpamProvisionedCidrs(List<String> ipv4IpamProvisionedCidrs) Sets the value ofVPCCidrBlockattributes.getIpv4IpamProvisionedCidrs()
- Parameters:
ipv4IpamProvisionedCidrs
- IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.- Returns:
this
-
ipv4NetmaskLength
@Stability(Experimental) public VPCCidrBlockattributes.Builder ipv4NetmaskLength(Number ipv4NetmaskLength) Sets the value ofVPCCidrBlockattributes.getIpv4NetmaskLength()
- Parameters:
ipv4NetmaskLength
- Net mask length for IPv4 address type.- Returns:
this
-
ipv6IpamPoolId
@Stability(Experimental) public VPCCidrBlockattributes.Builder ipv6IpamPoolId(String ipv6IpamPoolId) Sets the value ofVPCCidrBlockattributes.getIpv6IpamPoolId()
- Parameters:
ipv6IpamPoolId
- IPAM pool for IPv6 address type.- Returns:
this
-
ipv6NetmaskLength
@Stability(Experimental) public VPCCidrBlockattributes.Builder ipv6NetmaskLength(Number ipv6NetmaskLength) Sets the value ofVPCCidrBlockattributes.getIpv6NetmaskLength()
- Parameters:
ipv6NetmaskLength
- Net mask length for IPv6 address type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VPCCidrBlockattributes>
- Returns:
- a new instance of
VPCCidrBlockattributes
- Throws:
NullPointerException
- if any required attribute was not provided
-