@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StopInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<StopInstancesRequest>
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.
|
Boolean |
getHibernate()
Hibernates the instance if the instance was enabled for hibernation at launch.
|
List<String> |
getInstanceIds()
The IDs of the instances.
|
int |
hashCode() |
Boolean |
isForce()
Forces the instances to stop.
|
Boolean |
isHibernate()
Hibernates the instance if the instance was enabled for hibernation at launch.
|
void |
setForce(Boolean force)
Forces the instances to stop.
|
void |
setHibernate(Boolean hibernate)
Hibernates the instance if the instance was enabled for hibernation at launch.
|
void |
setInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
String |
toString()
Returns a string representation of this object.
|
StopInstancesRequest |
withForce(Boolean force)
Forces the instances to stop.
|
StopInstancesRequest |
withHibernate(Boolean hibernate)
Hibernates the instance if the instance was enabled for hibernation at launch.
|
StopInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
StopInstancesRequest |
withInstanceIds(String... instanceIds)
The IDs of the instances.
|
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()
The IDs of the instances.
public void setInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.public StopInstancesRequest withInstanceIds(String... instanceIds)
The IDs of the instances.
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
- The IDs of the instances.public StopInstancesRequest withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.public void setHibernate(Boolean hibernate)
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
hibernate
- Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot
hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in
the Amazon EC2 User Guide.
Default: false
public Boolean getHibernate()
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
Default: false
public StopInstancesRequest withHibernate(Boolean hibernate)
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
hibernate
- Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot
hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in
the Amazon EC2 User Guide.
Default: false
public Boolean isHibernate()
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
Default: false
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()