public class StartInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
StartInstancesRequest()
Default constructor for a new StartInstancesRequest object.
|
StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new StartInstancesRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo()
Returns the value of the AdditionalInfo property for this object.
|
java.util.List<java.lang.String> |
getInstanceIds()
The list of Amazon EC2 instances to start.
|
int |
hashCode() |
void |
setAdditionalInfo(java.lang.String additionalInfo)
Sets the value of the AdditionalInfo property for this object.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of Amazon EC2 instances to start.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartInstancesRequest |
withAdditionalInfo(java.lang.String additionalInfo)
Sets the value of the AdditionalInfo property for this object.
|
StartInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of Amazon EC2 instances to start.
|
StartInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
The list of Amazon EC2 instances to start.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic StartInstancesRequest()
public StartInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds - The list of Amazon EC2 instances to start.public java.util.List<java.lang.String> getInstanceIds()
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
instanceIds - The list of Amazon EC2 instances to start.public StartInstancesRequest withInstanceIds(java.lang.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(java.util.Collection<java.lang.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 java.lang.String getAdditionalInfo()
public void setAdditionalInfo(java.lang.String additionalInfo)
additionalInfo - The new value for the AdditionalInfo property for this object.public StartInstancesRequest withAdditionalInfo(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object