Class StopTaskRequest

    • Constructor Detail

      • StopTaskRequest

        public StopTaskRequest()
    • Method Detail

      • setCluster

        public void setCluster​(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..

        Parameters:
        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..
      • getCluster

        public String getCluster()

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

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

        public StopTaskRequest withCluster​(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..

        Parameters:
        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..
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTask

        public void setTask​(String task)

        The task ID or full Amazon Resource Name (ARN) entry of the task to stop.

        Parameters:
        task - The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
      • getTask

        public String getTask()

        The task ID or full Amazon Resource Name (ARN) entry of the task to stop.

        Returns:
        The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
      • withTask

        public StopTaskRequest withTask​(String task)

        The task ID or full Amazon Resource Name (ARN) entry of the task to stop.

        Parameters:
        task - The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setReason

        public void setReason​(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.

        Parameters:
        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.
      • getReason

        public String getReason()

        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.

        Returns:
        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.
      • withReason

        public StopTaskRequest withReason​(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.

        Parameters:
        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.
        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; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object