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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Specifies the fabric name - Azure or AD. */
public final class FabricName extends ExpandableStringEnum<FabricName> {
    /** Static value Invalid for FabricName. */
    public static final FabricName INVALID = fromString("Invalid");

    /** Static value Azure for FabricName. */
    public static final FabricName AZURE = fromString("Azure");

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

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

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