code: public void cancelJob(CancelJobRequest request) {
          checkNotNull(request, "request should not be null.");
          checkStringNotEmpty(request.getJobId(), "The parameter jobId should not be null or empty string.");
  
          InternalRequest internalRequest = this.createRequest(
                  request, HttpMethodName.PUT, JOB, request.getJobId());
          internalRequest.addParameter("cancel", null);
  
          this.invokeHttpClient(internalRequest, AbstractBceResponse.class);
      }
docs: Cancel a Batch-Compute job.
  
  @param request The request containing the ID of the job to be cancelled.