com.amazonaws.services.ec2.model
Class TerminateInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.TerminateInstancesRequest

public class TerminateInstancesRequest
extends AmazonWebServiceRequest

A request to shut 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 (for approximately one hour).

NOTE: By default, Amazon EC2 deletes all Amazon EBS volumes that were attached when the instance launched. Amazon EBS volumes attached after instance launch continue running.


Constructor Summary
TerminateInstancesRequest()
           
 
Method Summary
 List<String> getInstanceIds()
          The list of instances to terminate.
 void setInstanceIds(Collection<String> instanceIds)
          The list of instances to terminate.
 String toString()
           
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerminateInstancesRequest

public TerminateInstancesRequest()
Method Detail

getInstanceIds

public List<String> getInstanceIds()
The list of instances to terminate.

Returns:
The list of instances to terminate.

setInstanceIds

public void setInstanceIds(Collection<String> instanceIds)
The list of instances to terminate.

Parameters:
instanceIds - The list of instances to terminate.

withInstanceIds

public TerminateInstancesRequest withInstanceIds(String... instanceIds)
The list of instances to terminate.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceIds - The list of instances to terminate.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public TerminateInstancesRequest withInstanceIds(Collection<String> instanceIds)
The list of instances to terminate.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceIds - The list of instances to terminate.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.