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

package com.azure.resourcemanager.securityinsights.models;

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

/** The authentication kind used to poll the data. */
public final class ConnectAuthKind extends ExpandableStringEnum<ConnectAuthKind> {
    /** Static value Basic for ConnectAuthKind. */
    public static final ConnectAuthKind BASIC = fromString("Basic");

    /** Static value OAuth2 for ConnectAuthKind. */
    public static final ConnectAuthKind OAUTH2 = fromString("OAuth2");

    /** Static value APIKey for ConnectAuthKind. */
    public static final ConnectAuthKind APIKEY = fromString("APIKey");

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

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