code: @Override
      public StopKeyPhrasesDetectionJobResult stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request) {
          request = beforeClientExecution(request);
          return executeStopKeyPhrasesDetectionJob(request);
      }
docs: <p>
  Stops a key phrases detection job in progress.
  </p>
  <p>
  If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put into the
  <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it is put into the
  <code>COMPLETED</code> state; otherwise the job is stopped and put into the <code>STOPPED</code> state.
  </p>
  <p>
  If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
  <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400 Internal Request Exception.
  </p>
  <p>
  When a job is stopped, any documents already processed are written to the output location.
  </p>
  
  @param stopKeyPhrasesDetectionJobRequest
  @return Result of the StopKeyPhrasesDetectionJob operation returned by the service.
  @throws InvalidRequestException
  The request is invalid.
  @throws JobNotFoundException
  The specified job was not found. Check the job ID and try again.
  @throws InternalServerException
  An internal server error occurred. Retry your request.
  @sample AmazonComprehend.StopKeyPhrasesDetectionJob
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob"
  target="_top">AWS API Documentation</a>