@Override
    public LockSnapshotResult lockSnapshot(LockSnapshotRequest request) {
        request = beforeClientExecution(request);
        return executeLockSnapshot(request);
    }
<p>
Locks an Amazon EBS snapshot in either <i>governance</i> or <i>compliance</i> mode to protect it against
accidental or malicious deletions for a specific duration. A locked snapshot can't be deleted.
</p>
<p>
You can also use this action to modify the lock settings for a snapshot that is already locked. The allowed
modifications depend on the lock mode and lock state:
</p>
<ul>
<li>
<p>
If the snapshot is locked in governance mode, you can modify the lock mode and the lock duration or lock
expiration date.
</p>
</li>
<li>
<p>
If the snapshot is locked in compliance mode and it is in the cooling-off period, you can modify the lock mode
and the lock duration or lock expiration date.
</p>
</li>
<li>
<p>
If the snapshot is locked in compliance mode and the cooling-off period has lapsed, you can only increase the
lock duration or extend the lock expiration date.
</p>
</li>
</ul>

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