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

package com.azure.analytics.purview.sharing.models;

import java.util.Collection;

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

/**
 * Defines the supported types for registration.
 */
public final class TenantEmailRegistrationStatus extends ExpandableStringEnum<TenantEmailRegistrationStatus> {
    /**
     * The tenant email registration is in pending state.
     */
    public static final TenantEmailRegistrationStatus ACTIVATION_PENDING = fromString("ActivationPending");

    /**
     * The tenant email registration is complete and has been activated.
     */
    public static final TenantEmailRegistrationStatus ACTIVATED = fromString("Activated");

    /**
     * The tenant email registration has exhausted the max attempts.
     */
    public static final TenantEmailRegistrationStatus ACTIVATION_ATTEMPTS_EXHAUSTED = fromString("ActivationAttemptsExhausted");

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

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

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