Interface StopTaskRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<StopTaskRequest.Builder,StopTaskRequest>, EcsRequest.Builder, SdkBuilder<StopTaskRequest.Builder,StopTaskRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
StopTaskRequest

  • Method Details

    • cluster

      StopTaskRequest.Builder cluster(String cluster)

      The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.

      Parameters:
      cluster - The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • task

      Thefull Amazon Resource Name (ARN) of the task.

      Parameters:
      task - Thefull Amazon Resource Name (ARN) of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reason

      An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.

      Parameters:
      reason - An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks> API operations on this task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      StopTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
    • overrideConfiguration

      Specified by:
      overrideConfiguration in interface AwsRequest.Builder