public void setStopCode(String stopCode) {
        this.stopCode = stopCode;
    }
<p>
The stop code indicating why a task was stopped. The <code>stoppedReason</code> might contain additional details.
</p>
<p>
For more information about stop code, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stopped-task-error-codes.html">Stopped tasks
error codes</a> in the <i>Amazon ECS Developer Guide</i>.
</p>

@param stopCode
       The stop code indicating why a task was stopped. The <code>stoppedReason</code> might contain additional
       details. </p>
       <p>
       For more information about stop code, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stopped-task-error-codes.html">Stopped
       tasks error codes</a> in the <i>Amazon ECS Developer Guide</i>.
@see TaskStopCode
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Task.java