public ReportTaskProgressResult withCanceled(Boolean canceled) {
        setCanceled(canceled);
        return this;
    }
<p>
If true, the calling task runner should cancel processing of the task. The task runner does not need to call
<a>SetTaskStatus</a> for canceled tasks.
</p>

@param canceled
       If true, the calling task runner should cancel processing of the task. The task runner does not need to
       call <a>SetTaskStatus</a> for canceled tasks.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/ReportTaskProgressResult.java