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.this property has been deprecatedinstanceId
(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
@Stability(Stable) public static CfnEIPAssociation.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
eip
Deprecated.this property has been deprecated- Parameters:
eip
- This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEIPAssociation>
- Returns:
- a newly built instance of
CfnEIPAssociation
.
-