public ManagedAgent withLastStatus(String lastStatus) {
        setLastStatus(lastStatus);
        return this;
    }
<p>
The last known status of the managed agent.
</p>

@param lastStatus
       The last known status of the managed agent.
@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/ManagedAgent.java