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

package com.azure.resourcemanager.apimanagement.models;

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

/** Defines values for AccessIdName. */
public final class AccessIdName extends ExpandableStringEnum<AccessIdName> {
    /** Static value access for AccessIdName. */
    public static final AccessIdName ACCESS = fromString("access");

    /** Static value gitAccess for AccessIdName. */
    public static final AccessIdName GIT_ACCESS = fromString("gitAccess");

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

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