com.amazonaws.services.ec2.model
Class RebootInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.RebootInstancesRequest
All Implemented Interfaces:
DryRunSupportedRequest<RebootInstancesRequest>, java.io.Serializable

public class RebootInstancesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<RebootInstancesRequest>

Container for the parameters to the RebootInstances operation.

Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

If a Linux/Unix instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.rebootInstances(RebootInstancesRequest), Serialized Form

Constructor Summary
RebootInstancesRequest()
          Default constructor for a new RebootInstancesRequest object.
RebootInstancesRequest(java.util.List<java.lang.String> instanceIds)
          Constructs a new RebootInstancesRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<RebootInstancesRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<java.lang.String> getInstanceIds()
          One or more instance IDs.
 int hashCode()
           
 void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          One or more instance IDs.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RebootInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          One or more instance IDs.
 RebootInstancesRequest withInstanceIds(java.lang.String... instanceIds)
          One or more instance IDs.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.util.List<java.lang.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 - One or more instance IDs.
Method Detail

getInstanceIds

public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.

Returns:
One or more instance IDs.

setInstanceIds

public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.

Parameters:
instanceIds - One or more instance IDs.

withInstanceIds

public RebootInstancesRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.

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

Parameters:
instanceIds - One or more instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public RebootInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.

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

Parameters:
instanceIds - One or more instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<RebootInstancesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<RebootInstancesRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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