public static interface StopTaskRequest.Builder extends EcsRequest.Builder, CopyableBuilder<StopTaskRequest.Builder,StopTaskRequest>
Modifier and Type | Method and Description |
---|---|
StopTaskRequest.Builder |
cluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop.
|
StopTaskRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
StopTaskRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
StopTaskRequest.Builder |
reason(String reason)
An optional message specified when a task is stopped.
|
StopTaskRequest.Builder |
task(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
|
build
overrideConfiguration
copy
applyMutation, build
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.
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.StopTaskRequest.Builder task(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
task
- The task ID or full Amazon Resource Name (ARN) entry of the task to stop.StopTaskRequest.Builder reason(String reason)
An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.
reason
- An optional message specified when a task is stopped. For example, if you are using a custom
scheduler, you can use this parameter to specify the reason for stopping the task here, and the
message will appear in subsequent DescribeTasks API operations on this task. Up to 255
characters are allowed in this message.StopTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.StopTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.