|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.StartInstancesRequest
public class StartInstancesRequest
Container for the parameters to the StartInstances operation
.
Starts an Amazon EBS-backed AMI that you've previously stopped.
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. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide .
AmazonEC2.startInstances(StartInstancesRequest)
,
Serialized FormConstructor Summary | |
---|---|
StartInstancesRequest()
Default constructor for a new StartInstancesRequest object. |
|
StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new StartInstancesRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAdditionalInfo()
|
Request<StartInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.util.List<java.lang.String> |
getInstanceIds()
One or more instance IDs. |
int |
hashCode()
|
void |
setAdditionalInfo(java.lang.String additionalInfo)
|
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. |
StartInstancesRequest |
withAdditionalInfo(java.lang.String additionalInfo)
Returns a reference to this object so that method calls can be chained together. |
StartInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs. |
StartInstancesRequest |
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 |
---|
public StartInstancesRequest()
public StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.Method Detail |
---|
public java.util.List<java.lang.String> getInstanceIds()
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.public StartInstancesRequest withInstanceIds(java.lang.String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public StartInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public java.lang.String getAdditionalInfo()
public void setAdditionalInfo(java.lang.String additionalInfo)
additionalInfo
- public StartInstancesRequest withAdditionalInfo(java.lang.String additionalInfo)
Returns a reference to this object so that method calls can be chained together.
additionalInfo
-
public Request<StartInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<StartInstancesRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |