public class RebootInstancesRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<RebootInstancesRequest>
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.
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 |
---|---|
boolean |
equals(Object obj) |
Request<RebootInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public RebootInstancesRequest()
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- The list of instances to terminate.public RebootInstancesRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The list of instances to terminate.public RebootInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The list of instances to terminate.public Request<RebootInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RebootInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.