public SubmitContainerStateChangeRequest withTask(String task) {
        setTask(task);
        return this;
    }
<p>
The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.
</p>

@param task
       The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/SubmitContainerStateChangeRequest.java