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

package com.azure.analytics.synapse.artifacts.models;

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

/** Type of authentication used to connect to the OData service. */
public final class ODataAuthenticationType extends ExpandableStringEnum<ODataAuthenticationType> {
    /** Static value Basic for ODataAuthenticationType. */
    public static final ODataAuthenticationType BASIC = fromString("Basic");

    /** Static value Anonymous for ODataAuthenticationType. */
    public static final ODataAuthenticationType ANONYMOUS = fromString("Anonymous");

    /** Static value Windows for ODataAuthenticationType. */
    public static final ODataAuthenticationType WINDOWS = fromString("Windows");

    /** Static value AadServicePrincipal for ODataAuthenticationType. */
    public static final ODataAuthenticationType AAD_SERVICE_PRINCIPAL = fromString("AadServicePrincipal");

    /** Static value ManagedServiceIdentity for ODataAuthenticationType. */
    public static final ODataAuthenticationType MANAGED_SERVICE_IDENTITY = fromString("ManagedServiceIdentity");

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

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