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

package com.azure.resourcemanager.datafactory.models;

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

/** The authentication mechanism used to connect to the Presto server. */
public final class PrestoAuthenticationType extends ExpandableStringEnum<PrestoAuthenticationType> {
    /** Static value Anonymous for PrestoAuthenticationType. */
    public static final PrestoAuthenticationType ANONYMOUS = fromString("Anonymous");

    /** Static value LDAP for PrestoAuthenticationType. */
    public static final PrestoAuthenticationType LDAP = fromString("LDAP");

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

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

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