public class StartInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<StartInstancesRequest>
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 .
Constructor and Description |
---|
StartInstancesRequest()
Default constructor for a new StartInstancesRequest object.
|
StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new StartInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo()
Reserved.
|
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)
Reserved.
|
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)
Reserved.
|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public StartInstancesRequest()
public StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.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
- Reserved.public StartInstancesRequest withAdditionalInfo(java.lang.String additionalInfo)
Returns a reference to this object so that method calls can be chained together.
additionalInfo
- Reserved.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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.