// 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;

/** Describes the state of user's authorization for a connector kind. */
public final class DataConnectorAuthorizationState extends ExpandableStringEnum<DataConnectorAuthorizationState> {
    /** Static value Valid for DataConnectorAuthorizationState. */
    public static final DataConnectorAuthorizationState VALID = fromString("Valid");

    /** Static value Invalid for DataConnectorAuthorizationState. */
    public static final DataConnectorAuthorizationState INVALID = fromString("Invalid");

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

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