public class DeleteInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeleteInstance operation
.
Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.
For more information, see Deleting Instances .
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
DeleteInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
DeleteInstanceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Boolean |
getDeleteElasticIp()
Whether to delete the instance Elastic IP address.
|
Boolean |
getDeleteVolumes()
Whether to delete the instance's 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's Amazon EBS volumes.
|
void |
setDeleteElasticIp(Boolean deleteElasticIp)
Whether to delete the instance Elastic IP address.
|
void |
setDeleteVolumes(Boolean deleteVolumes)
Whether to delete the instance's 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's Amazon EBS volumes.
|
DeleteInstanceRequest |
withInstanceId(String instanceId)
The instance ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, 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's 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's Amazon EBS volumes.public Boolean getDeleteVolumes()
public String toString()
toString
in class Object
Object.toString()
public DeleteInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.