public class StartInstancesRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<StartInstancesRequest>
StartInstances operation
.
Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
NOTE: Performing this operation on an instance that uses an instance store as its root device returns an error.
Constructor and Description |
---|
StartInstancesRequest()
Default constructor for a new StartInstancesRequest object.
|
StartInstancesRequest(List<String> instanceIds)
Constructs a new StartInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAdditionalInfo()
Returns the value of the AdditionalInfo property for this object.
|
Request<StartInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getInstanceIds()
The list of Amazon EC2 instances to start.
|
int |
hashCode() |
void |
setAdditionalInfo(String additionalInfo)
Sets the value of the AdditionalInfo property for this object.
|
void |
setInstanceIds(Collection<String> instanceIds)
The list of Amazon EC2 instances to start.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartInstancesRequest |
withAdditionalInfo(String additionalInfo)
Sets the value of the AdditionalInfo property for this object.
|
StartInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
The list of Amazon EC2 instances to start.
|
StartInstancesRequest |
withInstanceIds(String... instanceIds)
The list of Amazon EC2 instances to start.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public StartInstancesRequest()
public StartInstancesRequest(List<String> instanceIds)
instanceIds
- The list of Amazon EC2 instances to start.public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- The list of Amazon EC2 instances to start.public StartInstancesRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The list of Amazon EC2 instances to start.public StartInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The list of Amazon EC2 instances to start.public String getAdditionalInfo()
public void setAdditionalInfo(String additionalInfo)
additionalInfo
- The new value for the AdditionalInfo property for this object.public StartInstancesRequest withAdditionalInfo(String additionalInfo)
Returns a reference to this object so that method calls can be chained together.
additionalInfo
- The new value for the AdditionalInfo property for this object.public Request<StartInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<StartInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.