|
Did this page help you?Yes No Tell us about it... |
||||||
| 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),
Serialized Form| Constructor Summary | |
|---|---|
TerminateInstancesRequest()
Default constructor for a new TerminateInstancesRequest object. |
|
TerminateInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new TerminateInstancesRequest object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<java.lang.String> |
getInstanceIds()
The list of instances to terminate. |
int |
hashCode()
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of instances to terminate. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
TerminateInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of instances to terminate. |
TerminateInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
The list of instances to terminate. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TerminateInstancesRequest()
public TerminateInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds - The list of instances to terminate.| Method Detail |
|---|
public java.util.List<java.lang.String> getInstanceIds()
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
instanceIds - The list of instances to terminate.public TerminateInstancesRequest withInstanceIds(java.lang.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(java.util.Collection<java.lang.String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds - The list of instances to terminate.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||