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()
          Default constructor for a new RebootInstancesRequest object.
RebootInstancesRequest(List<String> instanceIds)
          Constructs a new RebootInstancesRequest 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.
 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, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RebootInstancesRequest

public RebootInstancesRequest()
Default constructor for a new RebootInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


RebootInstancesRequest

public RebootInstancesRequest(List<String> instanceIds)
Constructs a new RebootInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceIds - The list of instances to terminate.
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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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