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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEIPProps.getAddress()
build()
Builds the configured instance.Sets the value ofCfnEIPProps.getDomain()
instanceId
(String instanceId) Sets the value ofCfnEIPProps.getInstanceId()
ipamPoolId
(String ipamPoolId) Sets the value ofCfnEIPProps.getIpamPoolId()
networkBorderGroup
(String networkBorderGroup) Sets the value ofCfnEIPProps.getNetworkBorderGroup()
publicIpv4Pool
(String publicIpv4Pool) Sets the value ofCfnEIPProps.getPublicIpv4Pool()
Sets the value ofCfnEIPProps.getTags()
transferAddress
(String transferAddress) Sets the value ofCfnEIPProps.getTransferAddress()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofCfnEIPProps.getAddress()
- Parameters:
address
- An Elastic IP address or a carrier IP address in a Wavelength Zone.- Returns:
this
-
domain
Sets the value ofCfnEIPProps.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
Sets the value ofCfnEIPProps.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
Sets the value ofCfnEIPProps.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
Sets the value ofCfnEIPProps.getNetworkBorderGroup()
- 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
Sets the value ofCfnEIPProps.getPublicIpv4Pool()
- 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
Sets the value ofCfnEIPProps.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
Sets the value ofCfnEIPProps.getTransferAddress()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEIPProps>
- Returns:
- a new instance of
CfnEIPProps
- Throws:
NullPointerException
- if any required attribute was not provided
-