public Service withSchedulingStrategy(SchedulingStrategy schedulingStrategy) {
        this.schedulingStrategy = schedulingStrategy.toString();
        return this;
    }
<p>
The scheduling strategy to use for the service. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html">Services</a>.
</p>
<p>
There are two service scheduler strategies available.
</p>
<ul>
<li>
<p>
<code>REPLICA</code>-The replica scheduling strategy places and maintains the desired number of tasks across your
cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement
strategies and constraints to customize task placement decisions.
</p>
</li>
<li>
<p>
<code>DAEMON</code>-The daemon scheduling strategy deploys exactly one task on each active container instance.
This task meets all of the task placement constraints that you specify in your cluster. The service scheduler
also evaluates the task placement constraints for running tasks. It stop tasks that don't meet the placement
constraints.
</p>
<note>
<p>
Fargate tasks don't support the <code>DAEMON</code> scheduling strategy.
</p>
</note></li>
</ul>

@param schedulingStrategy
       The scheduling strategy to use for the service. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html">Services</a>.</p>
       <p>
       There are two service scheduler strategies available.
       </p>
       <ul>
       <li>
       <p>
       <code>REPLICA</code>-The replica scheduling strategy places and maintains the desired number of tasks
       across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can
       use task placement strategies and constraints to customize task placement decisions.
       </p>
       </li>
       <li>
       <p>
       <code>DAEMON</code>-The daemon scheduling strategy deploys exactly one task on each active container
       instance. This task meets all of the task placement constraints that you specify in your cluster. The
       service scheduler also evaluates the task placement constraints for running tasks. It stop tasks that
       don't meet the placement constraints.
       </p>
       <note>
       <p>
       Fargate tasks don't support the <code>DAEMON</code> scheduling strategy.
       </p>
       </note></li>
@return Returns a reference to this object so that method calls can be chained together.
@see SchedulingStrategy
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Service.java