@SdkInternalApi
    final StopFleetActionsResult executeStopFleetActions(StopFleetActionsRequest stopFleetActionsRequest) {

        ExecutionContext executionContext = createExecutionContext(stopFleetActionsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<StopFleetActionsRequest> request = null;
        Response<StopFleetActionsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new StopFleetActionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopFleetActionsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "GameLift");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopFleetActions");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<StopFleetActionsResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopFleetActionsResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Suspends certain types of activity in a fleet location. Currently, this operation is used to stop auto-scaling
activity. For multi-location fleets, fleet actions are managed separately for each location.
</p>
<p>
Stopping fleet actions has several potential purposes. It allows you to temporarily stop auto-scaling activity
but retain your scaling policies for use in the future. For multi-location fleets, you can set up fleet-wide
auto-scaling, and then opt out of it for certain locations.
</p>
<p>
This operation can be used in the following ways:
</p>
<ul>
<li>
<p>
To stop actions on instances in the fleet's home Region, provide a fleet ID and the type of actions to suspend.
</p>
</li>
<li>
<p>
To stop actions on instances in one of the fleet's remote locations, provide a fleet ID, a location name, and the
type of actions to suspend.
</p>
</li>
</ul>
<p>
If successful, Amazon GameLift no longer initiates scaling events except in response to manual changes using <a
href
="https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html">UpdateFleetCapacity</a>.
To restart fleet actions again, call <a
href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartFleetActions.html">StartFleetActions</a>.
</p>
<p>
<b>Learn more</b>
</p>
<p>
<a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html">Setting up Amazon GameLift
Fleets</a>
</p>

@param stopFleetActionsRequest
@return Result of the StopFleetActions operation returned by the service.
@throws InternalServiceException
        The service encountered an unrecoverable internal failure while processing the request. Clients can retry
        such requests immediately or after a waiting period.
@throws InvalidRequestException
        One or more parameter values in the request are invalid. Correct the invalid parameter values before
        retrying.
@throws UnauthorizedException
        The client failed authentication. Clients should not retry such requests.
@throws NotFoundException
        THe requested resources was not found. The resource was either not created yet or deleted.
@throws UnsupportedRegionException
        The requested operation is not supported in the Region specified.
@sample AmazonGameLift.StopFleetActions
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopFleetActions" target="_top">AWS API
     Documentation</a>
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/AmazonGameLiftClient.java