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

package com.azure.resourcemanager.databoxedge.models;

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

/** Type of access to be allowed on the share for this user. */
public final class ShareAccessType extends ExpandableStringEnum<ShareAccessType> {
    /** Static value Change for ShareAccessType. */
    public static final ShareAccessType CHANGE = fromString("Change");

    /** Static value Read for ShareAccessType. */
    public static final ShareAccessType READ = fromString("Read");

    /** Static value Custom for ShareAccessType. */
    public static final ShareAccessType CUSTOM = fromString("Custom");

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

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

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