Interface ExecuteCommandResponse.Builder

  • Method Details

    • clusterArn

      ExecuteCommandResponse.Builder clusterArn(String clusterArn)

      The Amazon Resource Name (ARN) of the cluster.

      Parameters:
      clusterArn - The Amazon Resource Name (ARN) of the cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerArn

      ExecuteCommandResponse.Builder containerArn(String containerArn)

      The Amazon Resource Name (ARN) of the container.

      Parameters:
      containerArn - The Amazon Resource Name (ARN) of the container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerName

      ExecuteCommandResponse.Builder containerName(String containerName)

      The name of the container.

      Parameters:
      containerName - The name of the container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • interactive

      ExecuteCommandResponse.Builder interactive(Boolean interactive)

      Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify true for this value.

      Parameters:
      interactive - Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify true for this value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • session

      The details of the SSM session that was created for this instance of execute-command.

      Parameters:
      session - The details of the SSM session that was created for this instance of execute-command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • session

      The details of the SSM session that was created for this instance of execute-command.

      This is a convenience method that creates an instance of the Session.Builder avoiding the need to create one manually via Session.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to session(Session).

      Parameters:
      session - a consumer that will call methods on Session.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • taskArn

      The Amazon Resource Name (ARN) of the task.

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