@SdkInternalApi
    final GetOriginRequestPolicyResult executeGetOriginRequestPolicy(GetOriginRequestPolicyRequest getOriginRequestPolicyRequest) {

        ExecutionContext executionContext = createExecutionContext(getOriginRequestPolicyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetOriginRequestPolicyRequest> request = null;
        Response<GetOriginRequestPolicyResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetOriginRequestPolicyRequestMarshaller().marshall(super.beforeMarshalling(getOriginRequestPolicyRequest));
                // 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, "CloudFront");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOriginRequestPolicy");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<GetOriginRequestPolicyResult> responseHandler = new StaxResponseHandler<GetOriginRequestPolicyResult>(
                    new GetOriginRequestPolicyResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Gets an origin request policy, including the following metadata:
</p>
<ul>
<li>
<p>
The policy's identifier.
</p>
</li>
<li>
<p>
The date and time when the policy was last modified.
</p>
</li>
</ul>
<p>
To get an origin request policy, you must provide the policy's identifier. If the origin request policy is
attached to a distribution's cache behavior, you can get the policy's identifier using
<code>ListDistributions</code> or <code>GetDistribution</code>. If the origin request policy is not attached to a
cache behavior, you can get the identifier using <code>ListOriginRequestPolicies</code>.
</p>

@param getOriginRequestPolicyRequest
@return Result of the GetOriginRequestPolicy operation returned by the service.
@throws AccessDeniedException
        Access denied.
@throws NoSuchOriginRequestPolicyException
        The origin request policy does not exist.
@sample AmazonCloudFront.GetOriginRequestPolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java