Class VpcV2Props.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.alpha.VpcV2Props.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<VpcV2Props>
Enclosing interface:
VpcV2Props

@Stability(Experimental) public static final class VpcV2Props.Builder extends Object implements software.amazon.jsii.Builder<VpcV2Props>
A builder for VpcV2Props
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • defaultInstanceTenancy

      @Stability(Experimental) public VpcV2Props.Builder defaultInstanceTenancy(DefaultInstanceTenancy defaultInstanceTenancy)
      Parameters:
      defaultInstanceTenancy - The default tenancy of instances launched into the VPC. By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy.
      Returns:
      this
    • enableDnsHostnames

      @Stability(Experimental) public VpcV2Props.Builder enableDnsHostnames(Boolean enableDnsHostnames)
      Parameters:
      enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames.
      Returns:
      this
    • enableDnsSupport

      @Stability(Experimental) public VpcV2Props.Builder enableDnsSupport(Boolean enableDnsSupport)
      Parameters:
      enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC.
      Returns:
      this
    • primaryAddressBlock

      @Stability(Experimental) public VpcV2Props.Builder primaryAddressBlock(IIpAddresses primaryAddressBlock)
      Parameters:
      primaryAddressBlock - A must IPv4 CIDR block for the VPC.
      Returns:
      this
    • secondaryAddressBlocks

      @Stability(Experimental) public VpcV2Props.Builder secondaryAddressBlocks(List<? extends IIpAddresses> secondaryAddressBlocks)
      Parameters:
      secondaryAddressBlocks - The secondary CIDR blocks associated with the VPC. Can be IPv4 or IPv6, two IPv4 ranges must follow RFC#1918 convention For more information,
      Returns:
      this
    • vpcName

      @Stability(Experimental) public VpcV2Props.Builder vpcName(String vpcName)
      Sets the value of VpcV2Props.getVpcName()
      Parameters:
      vpcName - Physical name for the VPC.
      Returns:
      this
    • build

      @Stability(Experimental) public VpcV2Props build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<VpcV2Props>
      Returns:
      a new instance of VpcV2Props
      Throws:
      NullPointerException - if any required attribute was not provided