public void setDesiredStatus(String desiredStatus) {
        this.desiredStatus = desiredStatus;
    }
<p>
The desired status of the task. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html">Task Lifecycle</a>.
</p>

@param desiredStatus
       The desired status of the task. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html">Task Lifecycle</a>.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java