public class DeleteInstanceRequest extends AmazonWebServiceRequest implements Serializable
DeleteInstance operation
.
Deletes a specified instance. You must stop an instance before you can delete it. For more information, see Deleting Instances .
Constructor and Description |
---|
DeleteInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getDeleteElasticIp()
Whether to delete the instance Elastic IP address.
|
Boolean |
getDeleteVolumes()
Whether to delete the instance Amazon EBS volumes.
|
String |
getInstanceId()
The instance ID.
|
int |
hashCode() |
Boolean |
isDeleteElasticIp()
Whether to delete the instance Elastic IP address.
|
Boolean |
isDeleteVolumes()
Whether to delete the instance Amazon EBS volumes.
|
void |
setDeleteElasticIp(Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
|
void |
setDeleteVolumes(Boolean deleteVolumes)
Whether to delete the instance Amazon EBS volumes.
|
void |
setInstanceId(String instanceId)
The instance ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteInstanceRequest |
withDeleteElasticIp(Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
|
DeleteInstanceRequest |
withDeleteVolumes(Boolean deleteVolumes)
Whether to delete the instance Amazon EBS volumes.
|
DeleteInstanceRequest |
withInstanceId(String instanceId)
The instance ID.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance ID.public DeleteInstanceRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID.public Boolean isDeleteElasticIp()
public void setDeleteElasticIp(Boolean deleteElasticIp)
deleteElasticIp
- Whether to delete the instance Elastic IP address.public DeleteInstanceRequest withDeleteElasticIp(Boolean deleteElasticIp)
Returns a reference to this object so that method calls can be chained together.
deleteElasticIp
- Whether to delete the instance Elastic IP address.public Boolean getDeleteElasticIp()
public Boolean isDeleteVolumes()
public void setDeleteVolumes(Boolean deleteVolumes)
deleteVolumes
- Whether to delete the instance Amazon EBS volumes.public DeleteInstanceRequest withDeleteVolumes(Boolean deleteVolumes)
Returns a reference to this object so that method calls can be chained together.
deleteVolumes
- Whether to delete the instance Amazon EBS volumes.public Boolean getDeleteVolumes()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.