Class CfnEIPAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEIPAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEIPAssociation>
- Enclosing class:
CfnEIPAssociation
@Stability(Stable)
public static final class CfnEIPAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEIPAssociation>
A fluent builder for
CfnEIPAssociation
.-
Method Summary
Modifier and TypeMethodDescriptionallocationId
(String allocationId) The allocation ID.build()
static CfnEIPAssociation.Builder
Deprecated.instanceId
(String instanceId) The ID of the instance.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.privateIpAddress
(String privateIpAddress) The primary or secondary private IP address to associate with the Elastic IP address.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnEIPAssociation.Builder
.
-
allocationId
The allocation ID.This is required.
- Parameters:
allocationId
- The allocation ID. This parameter is required.- Returns:
this
-
eip
Deprecated.- Parameters:
eip
- Deprecated. This parameter is required.- Returns:
this
-
instanceId
The ID of the instance.The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
- Parameters:
instanceId
- The ID of the instance. This parameter is required.- Returns:
this
-
networkInterfaceId
The ID of the network interface.If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
- Parameters:
networkInterfaceId
- The ID of the network interface. This parameter is required.- Returns:
this
-
privateIpAddress
The primary or secondary private IP address to associate with the Elastic IP address.If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
- Parameters:
privateIpAddress
- The primary or secondary private IP address to associate with the Elastic IP address. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEIPAssociation>
- Returns:
- a newly built instance of
CfnEIPAssociation
.
-