public class DeleteInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
deleteElasticIp
Whether to delete the instance Elastic IP address.
|
private java.lang.Boolean |
deleteVolumes
Whether to delete the instance's Amazon EBS volumes.
|
private java.lang.String |
instanceId
The instance ID.
|
NOOP
Constructor and Description |
---|
DeleteInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
DeleteInstanceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDeleteElasticIp()
Whether to delete the instance Elastic IP address.
|
java.lang.Boolean |
getDeleteVolumes()
Whether to delete the instance's Amazon EBS volumes.
|
java.lang.String |
getInstanceId()
The instance ID.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteElasticIp()
Whether to delete the instance Elastic IP address.
|
java.lang.Boolean |
isDeleteVolumes()
Whether to delete the instance's Amazon EBS volumes.
|
void |
setDeleteElasticIp(java.lang.Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
|
void |
setDeleteVolumes(java.lang.Boolean deleteVolumes)
Whether to delete the instance's Amazon EBS volumes.
|
void |
setInstanceId(java.lang.String instanceId)
The instance ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteInstanceRequest |
withDeleteElasticIp(java.lang.Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
|
DeleteInstanceRequest |
withDeleteVolumes(java.lang.Boolean deleteVolumes)
Whether to delete the instance's Amazon EBS volumes.
|
DeleteInstanceRequest |
withInstanceId(java.lang.String instanceId)
The instance ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String instanceId
The instance ID.
private java.lang.Boolean deleteElasticIp
Whether to delete the instance Elastic IP address.
private java.lang.Boolean deleteVolumes
Whether to delete the instance's Amazon EBS volumes.
public void setInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public java.lang.String getInstanceId()
The instance ID.
public DeleteInstanceRequest withInstanceId(java.lang.String instanceId)
The instance ID.
instanceId
- The instance ID.public void setDeleteElasticIp(java.lang.Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
deleteElasticIp
- Whether to delete the instance Elastic IP address.public java.lang.Boolean getDeleteElasticIp()
Whether to delete the instance Elastic IP address.
public DeleteInstanceRequest withDeleteElasticIp(java.lang.Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
deleteElasticIp
- Whether to delete the instance Elastic IP address.public java.lang.Boolean isDeleteElasticIp()
Whether to delete the instance Elastic IP address.
public void setDeleteVolumes(java.lang.Boolean deleteVolumes)
Whether to delete the instance's Amazon EBS volumes.
deleteVolumes
- Whether to delete the instance's Amazon EBS volumes.public java.lang.Boolean getDeleteVolumes()
Whether to delete the instance's Amazon EBS volumes.
public DeleteInstanceRequest withDeleteVolumes(java.lang.Boolean deleteVolumes)
Whether to delete the instance's Amazon EBS volumes.
deleteVolumes
- Whether to delete the instance's Amazon EBS volumes.public java.lang.Boolean isDeleteVolumes()
Whether to delete the instance's Amazon EBS volumes.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DeleteInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()