JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.ecs.model

Class ExecuteCommandRequest

    • Constructor Detail

      • ExecuteCommandRequest

        public ExecuteCommandRequest()
    • Method Detail

      • setCluster

        public void setCluster(String 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.
      • getCluster

        public String getCluster()

        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:
        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.
      • withCluster

        public ExecuteCommandRequest withCluster(String 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.
      • setContainer

        public void setContainer(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.
      • getContainer

        public String getContainer()

        The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.

        Returns:
        The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
      • withContainer

        public ExecuteCommandRequest withContainer(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.
      • setCommand

        public void setCommand(String command)

        The command to run on the container.

        Parameters:
        command - The command to run on the container.
      • getCommand

        public String getCommand()

        The command to run on the container.

        Returns:
        The command to run on the container.
      • withCommand

        public ExecuteCommandRequest withCommand(String 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.
      • setInteractive

        public void setInteractive(Boolean interactive)

        Use this flag to run your command in interactive mode.

        Parameters:
        interactive - Use this flag to run your command in interactive mode.
      • getInteractive

        public Boolean getInteractive()

        Use this flag to run your command in interactive mode.

        Returns:
        Use this flag to run your command in interactive mode.
      • withInteractive

        public ExecuteCommandRequest withInteractive(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.
      • isInteractive

        public Boolean isInteractive()

        Use this flag to run your command in interactive mode.

        Returns:
        Use this flag to run your command in interactive mode.
      • setTask

        public void setTask(String 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.
      • getTask

        public String getTask()

        The Amazon Resource Name (ARN) or ID of the task the container is part of.

        Returns:
        The Amazon Resource Name (ARN) or ID of the task the container is part of.
      • withTask

        public ExecuteCommandRequest withTask(String 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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /