public UpdateTaskProtectionRequest withProtectionEnabled(Boolean protectionEnabled) {
        setProtectionEnabled(protectionEnabled);
        return this;
    }
<p>
Specify <code>true</code> to mark a task for protection and <code>false</code> to unset protection, making it
eligible for termination.
</p>

@param protectionEnabled
       Specify <code>true</code> to mark a task for protection and <code>false</code> to unset protection, making
       it eligible for termination.
@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/UpdateTaskProtectionRequest.java