com.amazonaws.services.ec2.model
Class RebootInstancesRequest

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

public class RebootInstancesRequest
extends AmazonWebServiceRequest

A request to reboot one or more instances.

This operation is asynchronous; it only queues a request to reboot the specified instances. The operation will succeed if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

NOTE: If a Linux/UNIX instance does not cleanly shut down within four minutes, Amazon EC2 will perform a hard reboot.


Constructor Summary
RebootInstancesRequest()
           
 
Method Summary
 List<String> getInstanceIds()
          The list of instances to terminate.
 void setInstanceIds(Collection<String> instanceIds)
          The list of instances to terminate.
 String toString()
           
 RebootInstancesRequest withInstanceIds(Collection<String> instanceIds)
          The list of instances to terminate.
 RebootInstancesRequest 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

RebootInstancesRequest

public RebootInstancesRequest()
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 RebootInstancesRequest 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 RebootInstancesRequest 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.