public void setFailedTasks(Integer failedTasks) {
        this.failedTasks = failedTasks;
    }
<p>
The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
scheduler can't launch the task, the task doesn't transition to a <code>RUNNING</code> state, or if it fails any
of its defined health checks and is stopped.
</p>
<note>
<p>
Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and
stops being evaluated.
</p>
</note>

@param failedTasks
       The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
       scheduler can't launch the task, the task doesn't transition to a <code>RUNNING</code> state, or if it
       fails any of its defined health checks and is stopped.</p> <note>
       <p>
       Once a service deployment has one or more successfully running tasks, the failed task count resets to zero
       and stops being evaluated.
       </p>
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Deployment.java