public Service withDesiredCount(Integer desiredCount) {
        setDesiredCount(desiredCount);
        return this;
    }
<p>
The desired number of instantiations of the task definition to keep running on the service. This value is
specified when the service is created with <a>CreateService</a>, and it can be modified with
<a>UpdateService</a>.
</p>

@param desiredCount
       The desired number of instantiations of the task definition to keep running on the service. This value is
       specified when the service is created with <a>CreateService</a>, and it can be modified with
       <a>UpdateService</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/Service.java