public CancelDataRepositoryTaskRequest withTaskId(String taskId) {
        setTaskId(taskId);
        return this;
    }
<p>
Specifies the data repository task to cancel.
</p>

@param taskId
       Specifies the data repository task to cancel.
@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/CancelDataRepositoryTaskRequest.java