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

package com.azure.resourcemanager.synapse.models;

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

/** The storage account type used to store backups for this sql pool. */
public final class StorageAccountType extends ExpandableStringEnum<StorageAccountType> {
    /** Static value GRS for StorageAccountType. */
    public static final StorageAccountType GRS = fromString("GRS");

    /** Static value LRS for StorageAccountType. */
    public static final StorageAccountType LRS = fromString("LRS");

    /**
     * Creates a new instance of StorageAccountType value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public StorageAccountType() {
    }

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

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