public Task withLastStatus(String lastStatus) {
        setLastStatus(lastStatus);
        return this;
    }
<p>
The last known status for the task. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html">Task Lifecycle</a>.
</p>

@param lastStatus
       The last known status for the task. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html">Task Lifecycle</a>.
@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/Task.java