public Deployment withDesiredCount(Integer desiredCount) {
        setDesiredCount(desiredCount);
        return this;
    }
<p>
The most recent desired count of tasks that was specified for the service to deploy or maintain.
</p>

@param desiredCount
       The most recent desired count of tasks that was specified for the service to deploy or maintain.
@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/Deployment.java