@SdkInternalApi
    final UnlockSnapshotResult executeUnlockSnapshot(UnlockSnapshotRequest unlockSnapshotRequest) {

        ExecutionContext executionContext = createExecutionContext(unlockSnapshotRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<UnlockSnapshotRequest> request = null;
        Response<UnlockSnapshotResult> response = null;

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

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

            StaxResponseHandler<UnlockSnapshotResult> responseHandler = new StaxResponseHandler<UnlockSnapshotResult>(
                    new UnlockSnapshotResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the
cooling-off period. You can't unlock a snapshot that is locked in compliance mode after the cooling-off period
has expired.
</p>

@param unlockSnapshotRequest
@return Result of the UnlockSnapshot operation returned by the service.
@sample AmazonEC2.UnlockSnapshot
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnlockSnapshot" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java