|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.TerminateInstancesRequest
public class TerminateInstancesRequest
Container for the parameters to the TerminateInstances operation.
The TerminateInstances operation shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call will succeed.
Terminated instances will remain visible after termination (approximately one hour).
AmazonEC2.terminateInstances(TerminateInstancesRequest)| Constructor Summary | |
|---|---|
TerminateInstancesRequest()
Default constructor for a new TerminateInstancesRequest object. |
|
TerminateInstancesRequest(List<String> instanceIds)
Constructs a new TerminateInstancesRequest object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List<String> |
getInstanceIds()
The list of instances to terminate. |
int |
hashCode()
|
void |
setInstanceIds(Collection<String> instanceIds)
The list of instances to terminate. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
TerminateInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
The list of instances to terminate. |
TerminateInstancesRequest |
withInstanceIds(String... instanceIds)
The list of instances to terminate. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TerminateInstancesRequest()
public TerminateInstancesRequest(List<String> instanceIds)
instanceIds - The list of instances to terminate.| Method Detail |
|---|
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds - The list of instances to terminate.public TerminateInstancesRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds - The list of instances to terminate.
public TerminateInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds - The list of instances to terminate.
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||