// 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;

/** File Share type XSync or XSMB. */
public final class AzureFileShareType extends ExpandableStringEnum<AzureFileShareType> {
    /** Static value Invalid for AzureFileShareType. */
    public static final AzureFileShareType INVALID = fromString("Invalid");

    /** Static value XSMB for AzureFileShareType. */
    public static final AzureFileShareType XSMB = fromString("XSMB");

    /** Static value XSync for AzureFileShareType. */
    public static final AzureFileShareType XSYNC = fromString("XSync");

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

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

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