// 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 ApimIdentityType. */
public final class ApimIdentityType extends ExpandableStringEnum<ApimIdentityType> {
    /** Static value SystemAssigned for ApimIdentityType. */
    public static final ApimIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned");

    /** Static value UserAssigned for ApimIdentityType. */
    public static final ApimIdentityType USER_ASSIGNED = fromString("UserAssigned");

    /** Static value SystemAssigned, UserAssigned for ApimIdentityType. */
    public static final ApimIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned, UserAssigned");

    /** Static value None for ApimIdentityType. */
    public static final ApimIdentityType NONE = fromString("None");

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

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