public class StopInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable
StopInstances operation.
Stops 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: 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.
| コンストラクタと説明 |
|---|
StopInstancesRequest()
Default constructor for a new StopInstancesRequest object.
|
StopInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new StopInstancesRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getForce()
Forces the instance to stop.
|
java.util.List<java.lang.String> |
getInstanceIds()
The list of Amazon EC2 instances to stop.
|
int |
hashCode() |
java.lang.Boolean |
isForce()
Forces the instance to stop.
|
void |
setForce(java.lang.Boolean force)
Forces the instance to stop.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of Amazon EC2 instances to stop.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StopInstancesRequest |
withForce(java.lang.Boolean force)
Forces the instance to stop.
|
StopInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The list of Amazon EC2 instances to stop.
|
StopInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
The list of Amazon EC2 instances to stop.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic StopInstancesRequest()
public StopInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds - The list of Amazon EC2 instances to stop.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 stop.public StopInstancesRequest 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 stop.public StopInstancesRequest 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 stop.public java.lang.Boolean isForce()
public void setForce(java.lang.Boolean force)
force - Forces the instance to stop. The instance will not have an opportunity
to flush file system caches nor file system meta data. If you use this
option, you must perform file system check and repair procedures. This
option is not recommended for Windows instances.public StopInstancesRequest withForce(java.lang.Boolean force)
Returns a reference to this object so that method calls can be chained together.
force - Forces the instance to stop. The instance will not have an opportunity
to flush file system caches nor file system meta data. If you use this
option, you must perform file system check and repair procedures. This
option is not recommended for Windows instances.public java.lang.Boolean getForce()
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