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

package com.azure.resourcemanager.datalakeanalytics.models;

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

/** The type of AAD object the object identifier refers to. */
public final class AadObjectType extends ExpandableStringEnum<AadObjectType> {
    /** Static value User for AadObjectType. */
    public static final AadObjectType USER = fromString("User");

    /** Static value Group for AadObjectType. */
    public static final AadObjectType GROUP = fromString("Group");

    /** Static value ServicePrincipal for AadObjectType. */
    public static final AadObjectType SERVICE_PRINCIPAL = fromString("ServicePrincipal");

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

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

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