@Override
    public LockRuleResult lockRule(LockRuleRequest request) {
        request = beforeClientExecution(request);
        return executeLockRule(request);
    }
<p>
Locks a retention rule. A locked retention rule can't be modified or deleted.
</p>

@param lockRuleRequest
@return Result of the LockRule operation returned by the service.
@throws InternalServerException
        The service could not respond to the request due to an internal problem.
@throws ResourceNotFoundException
        The specified resource was not found.
@throws ValidationException
        One or more of the parameters in the request is not valid.
@throws ConflictException
        The specified retention rule lock request can't be completed.
@sample AmazonRecycleBin.LockRule
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/LockRule" target="_top">AWS API
     Documentation</a>
aws-java-sdk-recyclebin/src/main/java/com/amazonaws/services/recyclebin/AmazonRecycleBinClient.java