@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StopInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<StopInstancesRequest>
Contains the parameters for StopInstances.
NOOP
Constructor and Description |
---|
StopInstancesRequest()
Default constructor for StopInstancesRequest object.
|
StopInstancesRequest(List<String> instanceIds)
Constructs a new StopInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
StopInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<StopInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getForce()
Forces the instances to stop.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
Boolean |
isForce()
Forces the instances to stop.
|
void |
setForce(Boolean force)
Forces the instances to stop.
|
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
StopInstancesRequest |
withForce(Boolean force)
Forces the instances to stop.
|
StopInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
StopInstancesRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public StopInstancesRequest()
public List<String> getInstanceIds()
One or more instance IDs.
public void setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public StopInstancesRequest withInstanceIds(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(Collection<String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public void setForce(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 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(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 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 String toString()
toString
in class Object
Object.toString()
public StopInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.