@Override
    public StopApplicationResult stopApplication(StopApplicationRequest request) {
        request = beforeClientExecution(request);
        return executeStopApplication(request);
    }
<p>
Stops a specified application and releases initial capacity if configured. All scheduled and running jobs must be
completed or cancelled before stopping an application.
</p>

@param stopApplicationRequest
@return Result of the StopApplication operation returned by the service.
@throws ValidationException
        The input fails to satisfy the constraints specified by an Amazon Web Services service.
@throws ResourceNotFoundException
        The specified resource was not found.
@throws InternalServerException
        Request processing failed because of an error or failure with the service.
@sample AWSEMRServerless.StopApplication
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/StopApplication" target="_top">AWS
     API Documentation</a>
aws-java-sdk-emrserverless/src/main/java/com/amazonaws/services/emrserverless/AWSEMRServerlessClient.java