// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.sql.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for ManagedInstanceLongTermRetentionPolicyName. */
public final class ManagedInstanceLongTermRetentionPolicyName
    extends ExpandableStringEnum<ManagedInstanceLongTermRetentionPolicyName> {
    /** Static value default for ManagedInstanceLongTermRetentionPolicyName. */
    public static final ManagedInstanceLongTermRetentionPolicyName DEFAULT = fromString("default");

    /**
     * Creates or finds a ManagedInstanceLongTermRetentionPolicyName from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ManagedInstanceLongTermRetentionPolicyName.
     */
    @JsonCreator
    public static ManagedInstanceLongTermRetentionPolicyName fromString(String name) {
        return fromString(name, ManagedInstanceLongTermRetentionPolicyName.class);
    }

    /**
     * Gets known ManagedInstanceLongTermRetentionPolicyName values.
     *
     * @return known ManagedInstanceLongTermRetentionPolicyName values.
     */
    public static Collection<ManagedInstanceLongTermRetentionPolicyName> values() {
        return values(ManagedInstanceLongTermRetentionPolicyName.class);
    }
}
