public class StopInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<StopInstancesRequest>
Contains the parameters for StopInstances.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
force
Forces the instances to stop.
|
private SdkInternalList<java.lang.String> |
instanceIds
One or more instance IDs.
|
NOOP
Constructor and Description |
---|
StopInstancesRequest()
Default constructor for StopInstancesRequest object.
|
StopInstancesRequest(java.util.List<java.lang.String> instanceIds)
Constructs a new StopInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
StopInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<StopInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.Boolean |
getForce()
Forces the instances to stop.
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
java.lang.Boolean |
isForce()
Forces the instances to stop.
|
void |
setForce(java.lang.Boolean force)
Forces the instances to stop.
|
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.
|
StopInstancesRequest |
withForce(java.lang.Boolean force)
Forces the instances to stop.
|
StopInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
StopInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<java.lang.String> instanceIds
One or more instance IDs.
private java.lang.Boolean force
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
public StopInstancesRequest()
public StopInstancesRequest(java.util.List<java.lang.String> instanceIds)
instanceIds
- One or more instance IDs.public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public StopInstancesRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection)
or
withInstanceIds(java.util.Collection)
if you want to override
the existing values.
instanceIds
- One or more instance IDs.public StopInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public void setForce(java.lang.Boolean force)
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
force
- Forces the instances to stop. The instances do not have an
opportunity to flush file system caches or file system metadata.
If you use this option, you must perform file system check and
repair procedures. This option is not recommended for Windows
instances.
Default: false
public java.lang.Boolean getForce()
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
Default: false
public StopInstancesRequest withForce(java.lang.Boolean force)
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
force
- Forces the instances to stop. The instances do not have an
opportunity to flush file system caches or file system metadata.
If you use this option, you must perform file system check and
repair procedures. This option is not recommended for Windows
instances.
Default: false
public java.lang.Boolean isForce()
Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
Default: false
public Request<StopInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<StopInstancesRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StopInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()