public class RebootInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RebootInstancesRequest>
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 .
NOOP
Constructor and Description |
---|
RebootInstancesRequest()
Default constructor for a new RebootInstancesRequest object.
|
RebootInstancesRequest(List<String> instanceIds)
Constructs a new RebootInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
RebootInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<RebootInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RebootInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
RebootInstancesRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public RebootInstancesRequest()
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- One or more instance IDs.public RebootInstancesRequest withInstanceIds(String... instanceIds)
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public RebootInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public Request<RebootInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RebootInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
public RebootInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.