public class AssociateAddressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AssociateAddressRequest>
NOOP
Constructor and Description |
---|
AssociateAddressRequest()
Default constructor for AssociateAddressRequest object.
|
AssociateAddressRequest(String instanceId,
String publicIp)
Constructs a new AssociateAddressRequest object.
|
Modifier and Type | Method and Description |
---|---|
AssociateAddressRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAllocationId()
[EC2-VPC] The allocation ID.
|
Boolean |
getAllowReassociation()
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an
Elastic IP address that is already associated with an instance or network
interface to be reassociated with the specified instance or network
interface.
|
Request<AssociateAddressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getNetworkInterfaceId()
[EC2-VPC] The ID of the network interface.
|
String |
getPrivateIpAddress()
[EC2-VPC] The primary or secondary private IP address to associate with
the Elastic IP address.
|
String |
getPublicIp()
The Elastic IP address.
|
int |
hashCode() |
Boolean |
isAllowReassociation()
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an
Elastic IP address that is already associated with an instance or network
interface to be reassociated with the specified instance or network
interface.
|
void |
setAllocationId(String allocationId)
[EC2-VPC] The allocation ID.
|
void |
setAllowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an
Elastic IP address that is already associated with an instance or network
interface to be reassociated with the specified instance or network
interface.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
[EC2-VPC] The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
[EC2-VPC] The primary or secondary private IP address to associate with
the Elastic IP address.
|
void |
setPublicIp(String publicIp)
The Elastic IP address.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssociateAddressRequest |
withAllocationId(String allocationId)
[EC2-VPC] The allocation ID.
|
AssociateAddressRequest |
withAllowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an
Elastic IP address that is already associated with an instance or network
interface to be reassociated with the specified instance or network
interface.
|
AssociateAddressRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
AssociateAddressRequest |
withNetworkInterfaceId(String networkInterfaceId)
[EC2-VPC] The ID of the network interface.
|
AssociateAddressRequest |
withPrivateIpAddress(String privateIpAddress)
[EC2-VPC] The primary or secondary private IP address to associate with
the Elastic IP address.
|
AssociateAddressRequest |
withPublicIp(String publicIp)
The Elastic IP address.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AssociateAddressRequest()
public AssociateAddressRequest(String instanceId, String publicIp)
instanceId
- The ID of the instance. This is required for EC2-Classic. For
EC2-VPC, you can specify either the instance ID or the network
interface ID, but not both. The operation fails if you specify an
instance ID unless exactly one network interface is attached.publicIp
- The Elastic IP address. This is required for EC2-Classic.public void setInstanceId(String instanceId)
The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
instanceId
- The ID of the instance. This is required for EC2-Classic. For
EC2-VPC, you can specify either the instance ID or the network
interface ID, but not both. The operation fails if you specify an
instance ID unless exactly one network interface is attached.public String getInstanceId()
The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
public AssociateAddressRequest withInstanceId(String instanceId)
The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.
instanceId
- The ID of the instance. This is required for EC2-Classic. For
EC2-VPC, you can specify either the instance ID or the network
interface ID, but not both. The operation fails if you specify an
instance ID unless exactly one network interface is attached.public void setPublicIp(String publicIp)
The Elastic IP address. This is required for EC2-Classic.
publicIp
- The Elastic IP address. This is required for EC2-Classic.public String getPublicIp()
The Elastic IP address. This is required for EC2-Classic.
public AssociateAddressRequest withPublicIp(String publicIp)
The Elastic IP address. This is required for EC2-Classic.
publicIp
- The Elastic IP address. This is required for EC2-Classic.public void setAllocationId(String allocationId)
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
allocationId
- [EC2-VPC] The allocation ID. This is required for EC2-VPC.public String getAllocationId()
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
public AssociateAddressRequest withAllocationId(String allocationId)
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
allocationId
- [EC2-VPC] The allocation ID. This is required for EC2-VPC.public void setNetworkInterfaceId(String 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.
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.public String getNetworkInterfaceId()
[EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
public AssociateAddressRequest withNetworkInterfaceId(String 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.
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.public void setPrivateIpAddress(String 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.
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.public String getPrivateIpAddress()
[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.
public AssociateAddressRequest withPrivateIpAddress(String 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.
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.public void setAllowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
allowReassociation
- [EC2-VPC] For a VPC in an EC2-Classic account, specify true to
allow an Elastic IP address that is already associated with an
instance or network interface to be reassociated with the
specified instance or network interface. Otherwise, the operation
fails. In a VPC in an EC2-VPC-only account, reassociation is
automatic, therefore you can specify false to ensure the operation
fails if the Elastic IP address is already associated with another
resource.public Boolean getAllowReassociation()
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
public AssociateAddressRequest withAllowReassociation(Boolean allowReassociation)
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
allowReassociation
- [EC2-VPC] For a VPC in an EC2-Classic account, specify true to
allow an Elastic IP address that is already associated with an
instance or network interface to be reassociated with the
specified instance or network interface. Otherwise, the operation
fails. In a VPC in an EC2-VPC-only account, reassociation is
automatic, therefore you can specify false to ensure the operation
fails if the Elastic IP address is already associated with another
resource.public Boolean isAllowReassociation()
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
public Request<AssociateAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssociateAddressRequest>
public String toString()
toString
in class Object
Object.toString()
public AssociateAddressRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.