public static final class CfnEIPAssociationProps.Builder
extends java.lang.Object
CfnEIPAssociationProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEIPAssociationProps.Builder |
allocationId(java.lang.String allocationId)
Sets the value of
CfnEIPAssociationProps.getAllocationId() |
CfnEIPAssociationProps |
build()
Builds the configured instance.
|
CfnEIPAssociationProps.Builder |
eip(java.lang.String eip)
Sets the value of
CfnEIPAssociationProps.getEip() |
CfnEIPAssociationProps.Builder |
instanceId(java.lang.String instanceId)
Sets the value of
CfnEIPAssociationProps.getInstanceId() |
CfnEIPAssociationProps.Builder |
networkInterfaceId(java.lang.String networkInterfaceId)
Sets the value of
CfnEIPAssociationProps.getNetworkInterfaceId() |
CfnEIPAssociationProps.Builder |
privateIpAddress(java.lang.String privateIpAddress)
Sets the value of
CfnEIPAssociationProps.getPrivateIpAddress() |
public CfnEIPAssociationProps.Builder allocationId(java.lang.String allocationId)
CfnEIPAssociationProps.getAllocationId()
allocationId
- [EC2-VPC] The allocation ID.
This is required for EC2-VPC.this
public CfnEIPAssociationProps.Builder eip(java.lang.String eip)
CfnEIPAssociationProps.getEip()
eip
- [EC2-Classic] The Elastic IP address to associate with the instance.
This is required for EC2-Classic.this
public CfnEIPAssociationProps.Builder instanceId(java.lang.String instanceId)
CfnEIPAssociationProps.getInstanceId()
instanceId
- The ID of the instance.
The instance must have exactly one attached network interface. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you must specify an instance ID and the instance must be in the running state.this
public CfnEIPAssociationProps.Builder networkInterfaceId(java.lang.String networkInterfaceId)
CfnEIPAssociationProps.getNetworkInterfaceId()
networkInterfaceId
- [EC2-VPC] The ID of the network interface.
If the instance has more than one network interface, you must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
this
public CfnEIPAssociationProps.Builder privateIpAddress(java.lang.String privateIpAddress)
CfnEIPAssociationProps.getPrivateIpAddress()
privateIpAddress
- [EC2-VPC] 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.this
public CfnEIPAssociationProps build()
CfnEIPAssociationProps
java.lang.NullPointerException
- if any required attribute was not provided