@SdkInternalApi
    final GetDataProtectionPolicyResult executeGetDataProtectionPolicy(GetDataProtectionPolicyRequest getDataProtectionPolicyRequest) {

        ExecutionContext executionContext = createExecutionContext(getDataProtectionPolicyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetDataProtectionPolicyRequest> request = null;
        Response<GetDataProtectionPolicyResult> response = null;

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

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

            StaxResponseHandler<GetDataProtectionPolicyResult> responseHandler = new StaxResponseHandler<GetDataProtectionPolicyResult>(
                    new GetDataProtectionPolicyResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Retrieves the specified inline <code>DataProtectionPolicy</code> document that is stored in the specified Amazon
SNS topic.
</p>

@param getDataProtectionPolicyRequest
@return Result of the GetDataProtectionPolicy operation returned by the service.
@throws InvalidParameterException
        Indicates that a request parameter does not comply with the associated constraints.
@throws InternalErrorException
        Indicates an internal service error.
@throws NotFoundException
        Indicates that the requested resource does not exist.
@throws AuthorizationErrorException
        Indicates that the user has been denied access to the requested resource.
@throws InvalidSecurityException
        The credential signature isn't valid. You must use an HTTPS endpoint and sign your request using
        Signature Version 4.
@sample AmazonSNS.GetDataProtectionPolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetDataProtectionPolicy" target="_top">AWS
     API Documentation</a>
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSClient.java