|
|||||||
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 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.
AmazonEC2.startInstances(StartInstancesRequest)
Constructor Summary | |
---|---|
StartInstancesRequest()
Default constructor for a new StartInstancesRequest object. |
|
StartInstancesRequest(List<String> instanceIds)
Constructs a new StartInstancesRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAdditionalInfo()
Returns the value of the AdditionalInfo property for this object. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StartInstancesRequest()
public StartInstancesRequest(List<String> instanceIds)
instanceIds
- The list of Amazon EC2 instances to start.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |