@SdkInternalApi
    final GetEntitlementsResult executeGetEntitlements(GetEntitlementsRequest getEntitlementsRequest) {

        ExecutionContext executionContext = createExecutionContext(getEntitlementsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetEntitlementsRequest> request = null;
        Response<GetEntitlementsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetEntitlementsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getEntitlementsRequest));
                // 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, "Marketplace Entitlement Service");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEntitlements");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
GetEntitlements retrieves entitlement values for a given product. The results can be filtered based on customer
identifier or product dimensions.
</p>

@param getEntitlementsRequest
       The GetEntitlementsRequest contains parameters for the GetEntitlements operation.
@return Result of the GetEntitlements operation returned by the service.
@throws InvalidParameterException
        One or more parameters in your request was invalid.
@throws ThrottlingException
        The calls to the GetEntitlements API are throttled.
@throws InternalServiceErrorException
        An internal error has occurred. Retry your request. If the problem persists, post a message with details
        on the AWS forums.
@sample AWSMarketplaceEntitlement.GetEntitlements
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements"
     target="_top">AWS API Documentation</a>
aws-java-sdk-marketplaceentitlement/src/main/java/com/amazonaws/services/marketplaceentitlement/AWSMarketplaceEntitlementClient.java