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:
  • Constructor Details

    • RunScheduledInstancesRequest

      public RunScheduledInstancesRequest()
  • Method Details

    • 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 interface DryRunSupportedRequest<RunScheduledInstancesRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: