@SdkInternalApi
    final GetVaultLockResult executeGetVaultLock(GetVaultLockRequest getVaultLockRequest) {

        ExecutionContext executionContext = createExecutionContext(getVaultLockRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetVaultLockRequest> request = null;
        Response<GetVaultLockResult> response = null;

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

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
This operation retrieves the following attributes from the <code>lock-policy</code> subresource set on the
specified vault:
</p>
<ul>
<li>
<p>
The vault lock policy set on the vault.
</p>
</li>
<li>
<p>
The state of the vault lock, which is either <code>InProgess</code> or <code>Locked</code>.
</p>
</li>
<li>
<p>
When the lock ID expires. The lock ID is used to complete the vault locking process.
</p>
</li>
<li>
<p>
When the vault lock was initiated and put into the <code>InProgress</code> state.
</p>
</li>
</ul>
<p>
A vault lock is put into the <code>InProgress</code> state by calling <a>InitiateVaultLock</a>. A vault lock is
put into the <code>Locked</code> state by calling <a>CompleteVaultLock</a>. You can abort the vault locking
process by calling <a>AbortVaultLock</a>. For more information about the vault locking process, <a
href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault Lock</a>.
</p>
<p>
If there is no vault lock policy set on the vault, the operation returns a <code>404 Not found</code> error. For
more information about vault lock policies, <a
href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html">Amazon Glacier Access Control
with Vault Lock Policies</a>.
</p>

@param getVaultLockRequest
       The input values for <code>GetVaultLock</code>.
@return Result of the GetVaultLock operation returned by the service.
@throws ResourceNotFoundException
        Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.
@throws InvalidParameterValueException
        Returned if a parameter of the request is incorrectly specified.
@throws MissingParameterValueException
        Returned if a required header or parameter is missing from the request.
@throws ServiceUnavailableException
        Returned if the service cannot complete the request.
@sample AmazonGlacier.GetVaultLock
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/AmazonGlacierClient.java