@Override
    public SetDefaultPermissionVersionResult setDefaultPermissionVersion(SetDefaultPermissionVersionRequest request) {
        request = beforeClientExecution(request);
        return executeSetDefaultPermissionVersion(request);
    }
<p>
Designates the specified version number as the default version for the specified customer managed permission. New
resource shares automatically use this new default permission. Existing resource shares continue to use their
original permission version, but you can use <a>ReplacePermissionAssociations</a> to update them.
</p>

@param setDefaultPermissionVersionRequest
@return Result of the SetDefaultPermissionVersion operation returned by the service.
@throws InvalidParameterException
        The operation failed because a parameter you specified isn't valid.
@throws MalformedArnException
        The operation failed because the specified <a
        href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
        (ARN)</a> has a format that isn't valid.
@throws ServerInternalException
        The operation failed because the service could not respond to the request due to an internal problem. Try
        again later.
@throws ServiceUnavailableException
        The operation failed because the service isn't available. Try again later.
@throws UnknownResourceException
        The operation failed because a specified resource couldn't be found.
@throws InvalidClientTokenException
        The operation failed because the specified client token isn't valid.
@throws IdempotentParameterMismatchException
        The operation failed because the client token input parameter matched one that was used with a previous
        call to the operation, but at least one of the other input parameters is different from the previous
        call.
@sample AWSRAM.SetDefaultPermissionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/SetDefaultPermissionVersion"
     target="_top">AWS API Documentation</a>
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/AWSRAMClient.java