public UpdateServiceRequest withDesiredCount(Integer desiredCount) {
        setDesiredCount(desiredCount);
        return this;
    }
<p>
The number of instantiations of the task to place and keep running in your service.
</p>

@param desiredCount
       The number of instantiations of the task to place and keep running in your service.
@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/UpdateServiceRequest.java