Interface ExecuteCommandRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ExecuteCommandRequest.Builder,,ExecuteCommandRequest> EcsRequest.Builder,SdkBuilder<ExecuteCommandRequest.Builder,,ExecuteCommandRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ExecuteCommandRequest
public static interface ExecuteCommandRequest.Builder
extends EcsRequest.Builder, SdkPojo, CopyableBuilder<ExecuteCommandRequest.Builder,ExecuteCommandRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) or short name of the cluster the task is running in.The command to run on the container.The name of the container to execute the command on.interactive(Boolean interactive) Use this flag to run your command in interactive mode.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) or ID of the task the container is part of.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cluster
The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
- Parameters:
cluster- The Amazon Resource Name (ARN) or short name of the cluster the task is running in. 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.
-
container
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
- Parameters:
container- The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command to run on the container.
- Parameters:
command- The command to run on the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interactive
Use this flag to run your command in interactive mode.
- Parameters:
interactive- Use this flag to run your command in interactive mode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
The Amazon Resource Name (ARN) or ID of the task the container is part of.
- Parameters:
task- The Amazon Resource Name (ARN) or ID of the task the container is part of.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ExecuteCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ExecuteCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-