public class RunScheduledInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RunScheduledInstancesRequest>
RunScheduledInstances operation.
Launches the specified Scheduled Instances.
Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.
You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes.
NOOP| Constructor and Description |
|---|
RunScheduledInstancesRequest() |
| Modifier and Type | Method and Description |
|---|---|
RunScheduledInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
Request<RunScheduledInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getInstanceCount()
The number of instances.
|
ScheduledInstancesLaunchSpecification |
getLaunchSpecification()
The launch specification.
|
String |
getScheduledInstanceId()
The Scheduled Instance ID.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
void |
setInstanceCount(Integer instanceCount)
The number of instances.
|
void |
setLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification.
|
void |
setScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RunScheduledInstancesRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
RunScheduledInstancesRequest |
withInstanceCount(Integer instanceCount)
The number of instances.
|
RunScheduledInstancesRequest |
withLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification.
|
RunScheduledInstancesRequest |
withScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getClientToken()
public void setClientToken(String clientToken)
clientToken - Unique, case-sensitive identifier that ensures the idempotency of the
request. For more information, see Ensuring
Idempotency.public RunScheduledInstancesRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken - Unique, case-sensitive identifier that ensures the idempotency of the
request. For more information, see Ensuring
Idempotency.public Integer getInstanceCount()
Default: 1
Default: 1
public void setInstanceCount(Integer instanceCount)
Default: 1
instanceCount - The number of instances. Default: 1
public RunScheduledInstancesRequest withInstanceCount(Integer instanceCount)
Default: 1
Returns a reference to this object so that method calls can be chained together.
instanceCount - The number of instances. Default: 1
public String getScheduledInstanceId()
public void setScheduledInstanceId(String scheduledInstanceId)
scheduledInstanceId - The Scheduled Instance ID.public RunScheduledInstancesRequest withScheduledInstanceId(String scheduledInstanceId)
Returns a reference to this object so that method calls can be chained together.
scheduledInstanceId - The Scheduled Instance ID.public ScheduledInstancesLaunchSpecification getLaunchSpecification()
public void setLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
launchSpecification - The launch specification.public RunScheduledInstancesRequest withLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification - The launch specification.public Request<RunScheduledInstancesRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<RunScheduledInstancesRequest>public String toString()
toString in class ObjectObject.toString()public RunScheduledInstancesRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.