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

package com.azure.resourcemanager.resources.models;

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

/** The feature approval type. */
public final class SubscriptionFeatureRegistrationApprovalType
    extends ExpandableStringEnum<SubscriptionFeatureRegistrationApprovalType> {
    /** Static value NotSpecified for SubscriptionFeatureRegistrationApprovalType. */
    public static final SubscriptionFeatureRegistrationApprovalType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value ApprovalRequired for SubscriptionFeatureRegistrationApprovalType. */
    public static final SubscriptionFeatureRegistrationApprovalType APPROVAL_REQUIRED = fromString("ApprovalRequired");

    /** Static value AutoApproval for SubscriptionFeatureRegistrationApprovalType. */
    public static final SubscriptionFeatureRegistrationApprovalType AUTO_APPROVAL = fromString("AutoApproval");

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

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

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