code: public final ScanRun stopScanRun(String name) {
  
      StopScanRunRequest request = StopScanRunRequest.newBuilder().setName(name).build();
      return stopScanRun(request);
    }
docs: Stops a ScanRun. The stopped ScanRun is returned.
  
  <p>Sample code:
  
  <pre><code>
  try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
  ScanRun response = webSecurityScannerClient.stopScanRun(name.toString());
  }
  </code></pre>
  
  @param name Required. The resource name of the ScanRun to be stopped. The name follows the
  format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails