@SdkInternalApi
    final GetProductsResult executeGetProducts(GetProductsRequest getProductsRequest) {

        ExecutionContext executionContext = createExecutionContext(getProductsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetProductsRequest> request = null;
        Response<GetProductsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetProductsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getProductsRequest));
                // 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, "Pricing");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetProducts");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Returns a list of all products that match the filter criteria.
</p>

@param getProductsRequest
@return Result of the GetProducts operation returned by the service.
@throws InvalidParameterException
        One or more parameters had an invalid value.
@throws InvalidNextTokenException
        The pagination token is invalid. Try again without a pagination token.
@throws NotFoundException
        The requested resource can't be found.
@throws InternalErrorException
        An error on the server occurred during the processing of your request. Try again later.
@throws ThrottlingException
        You've made too many requests exceeding service quotas.
@throws ExpiredNextTokenException
        The pagination token expired. Try again without a pagination token.
@sample AWSPricing.GetProducts
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/GetProducts" target="_top">AWS API
     Documentation</a>
aws-java-sdk-pricing/src/main/java/com/amazonaws/services/pricing/AWSPricingClient.java