public class StopInstanceRequest extends AmazonWebServiceRequest implements Serializable
StopInstance operation
.
Stops a specified instance. When you stop a standard instance, the data disappears and must be reinstalled when you restart the instance. You can stop an Amazon EBS-backed instance without losing data. For more information, see Starting, Stopping, and Rebooting Instances .
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
StopInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance ID.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The instance ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StopInstanceRequest |
withInstanceId(String instanceId)
The instance ID.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance ID.public StopInstanceRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.