public CancelDataRepositoryTaskResult withTaskId(String taskId) {
        setTaskId(taskId);
        return this;
    }
<p>
The ID of the task being canceled.
</p>

@param taskId
       The ID of the task being canceled.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CancelDataRepositoryTaskResult.java