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

Container for the parameters to the RebootInstances operation.

The RebootInstances operation requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instance(s). The operation will succeed if the instances are valid and belong to the user. Requests to reboot terminated instances are ignored.

See Also:
AmazonEC2.rebootInstances(RebootInstancesRequest)

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()
          Returns a string representation of this object; useful for testing and debugging.
 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()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()


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