Class RunScheduledInstancesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.RunScheduledInstancesRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<RunScheduledInstancesRequest>
,Serializable
,Cloneable
public class RunScheduledInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RunScheduledInstancesRequest>
Contains the parameters for RunScheduledInstances.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RunScheduledInstancesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setClientToken
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
-
getClientToken
public String getClientToken()
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
- Returns:
- Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
-
withClientToken
public RunScheduledInstancesRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
The number of instances.
Default: 1
- Parameters:
instanceCount
- The number of instances.Default: 1
-
getInstanceCount
public Integer getInstanceCount()
The number of instances.
Default: 1
- Returns:
- The number of instances.
Default: 1
-
withInstanceCount
public RunScheduledInstancesRequest withInstanceCount(Integer instanceCount)
The number of instances.
Default: 1
- Parameters:
instanceCount
- The number of instances.Default: 1
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScheduledInstanceId
public void setScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.
-
getScheduledInstanceId
public String getScheduledInstanceId()
The Scheduled Instance ID.
- Returns:
- The Scheduled Instance ID.
-
withScheduledInstanceId
public RunScheduledInstancesRequest withScheduledInstanceId(String scheduledInstanceId)
The Scheduled Instance ID.
- Parameters:
scheduledInstanceId
- The Scheduled Instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchSpecification
public void setLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification.
- Parameters:
launchSpecification
- The launch specification.
-
getLaunchSpecification
public ScheduledInstancesLaunchSpecification getLaunchSpecification()
The launch specification.
- Returns:
- The launch specification.
-
withLaunchSpecification
public RunScheduledInstancesRequest withLaunchSpecification(ScheduledInstancesLaunchSpecification launchSpecification)
The launch specification.
- Parameters:
launchSpecification
- The launch specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<RunScheduledInstancesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<RunScheduledInstancesRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RunScheduledInstancesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-