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 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

      ExecuteCommandRequest.Builder container(String 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

      ExecuteCommandRequest.Builder interactive(Boolean 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.