@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAllocationId()
The allocation ID.
|
Boolean |
getAllowReassociation()
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is
already associated with another resource.
|
Request<AssociateAddressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The primary or secondary private IP address to associate with the Elastic IP address.
|
String |
getPublicIp()
Deprecated.
|
int |
hashCode() |
Boolean |
isAllowReassociation()
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is
already associated with another resource.
|
void |
setAllocationId(String allocationId)
The allocation ID.
|
void |
setAllowReassociation(Boolean allowReassociation)
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is
already associated with another resource.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary or secondary private IP address to associate with the Elastic IP address.
|
void |
setPublicIp(String publicIp)
Deprecated.
|
String |
toString()
Returns a string representation of this object.
|
AssociateAddressRequest |
withAllocationId(String allocationId)
The allocation ID.
|
AssociateAddressRequest |
withAllowReassociation(Boolean allowReassociation)
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is
already associated with another resource.
|
AssociateAddressRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
AssociateAddressRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
AssociateAddressRequest |
withPrivateIpAddress(String privateIpAddress)
The primary or secondary private IP address to associate with the Elastic IP address.
|
AssociateAddressRequest |
withPublicIp(String publicIp)
Deprecated.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AssociateAddressRequest()
public AssociateAddressRequest(String instanceId, String publicIp)
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.publicIp
- Deprecated.public void setAllocationId(String allocationId)
The allocation ID. This is required.
allocationId
- The allocation ID. This is required.public String getAllocationId()
The allocation ID. This is required.
public AssociateAddressRequest withAllocationId(String allocationId)
The allocation ID. This is required.
allocationId
- The allocation ID. This is required.public void setInstanceId(String 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.
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.public String getInstanceId()
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.
public AssociateAddressRequest withInstanceId(String 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.
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.public void setPublicIp(String publicIp)
Deprecated.
publicIp
- Deprecated.public String getPublicIp()
Deprecated.
public AssociateAddressRequest withPublicIp(String publicIp)
Deprecated.
publicIp
- Deprecated.public void setAllowReassociation(Boolean allowReassociation)
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
allowReassociation
- Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP
address is already associated with another resource.public Boolean getAllowReassociation()
Reassociation is automatic, but 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)
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
allowReassociation
- Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP
address is already associated with another resource.public Boolean isAllowReassociation()
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
public void setNetworkInterfaceId(String 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.
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.
public String getNetworkInterfaceId()
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.
You can specify either the instance ID or the network interface ID, but not both.
public AssociateAddressRequest withNetworkInterfaceId(String 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.
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.
public void setPrivateIpAddress(String 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.
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.public String getPrivateIpAddress()
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)
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
- 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 Request<AssociateAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssociateAddressRequest>
public String toString()
toString
in class Object
Object.toString()
public AssociateAddressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()