Class CfnEIPProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • address

      @Stability(Stable) public CfnEIPProps.Builder address(String address)
      Sets the value of CfnEIPProps.getAddress()
      Parameters:
      address - An Elastic IP address or a carrier IP address in a Wavelength Zone.
      Returns:
      this
    • domain

      @Stability(Stable) public CfnEIPProps.Builder domain(String domain)
      Sets the value of CfnEIPProps.getDomain()
      Parameters:
      domain - The network ( vpc ). If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.
      Returns:
      this
    • instanceId

      @Stability(Stable) public CfnEIPProps.Builder instanceId(String instanceId)
      Sets the value of CfnEIPProps.getInstanceId()
      Parameters:
      instanceId - The ID of the instance.

      Updates to the InstanceId property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.

      Returns:
      this
    • ipamPoolId

      @Stability(Stable) public CfnEIPProps.Builder ipamPoolId(String ipamPoolId)
      Sets the value of CfnEIPProps.getIpamPoolId()
      Parameters:
      ipamPoolId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
      Returns:
      this
    • networkBorderGroup

      @Stability(Stable) public CfnEIPProps.Builder networkBorderGroup(String networkBorderGroup)
      Parameters:
      networkBorderGroup - A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.

      Use DescribeAvailabilityZones to view the network border groups.

      Returns:
      this
    • publicIpv4Pool

      @Stability(Stable) public CfnEIPProps.Builder publicIpv4Pool(String publicIpv4Pool)
      Parameters:
      publicIpv4Pool - The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

      Updates to the PublicIpv4Pool property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.

      Returns:
      this
    • tags

      @Stability(Stable) public CfnEIPProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnEIPProps.getTags()
      Parameters:
      tags - Any tags assigned to the Elastic IP address.

      Updates to the Tags property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.

      Returns:
      this
    • transferAddress

      @Stability(Stable) public CfnEIPProps.Builder transferAddress(String transferAddress)
      Parameters:
      transferAddress - The Elastic IP address you are accepting for transfer. You can only accept one transferred address. For more information on Elastic IP address transfers, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide .
      Returns:
      this
    • build

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