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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

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

/**
 * Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning is supported.
 * "Disabled" stands for fast provisioning is not supported.
 */
public final class FastProvisioningSupportedEnum extends ExpandableStringEnum<FastProvisioningSupportedEnum> {
    /** Static value Enabled for FastProvisioningSupportedEnum. */
    public static final FastProvisioningSupportedEnum ENABLED = fromString("Enabled");

    /** Static value Disabled for FastProvisioningSupportedEnum. */
    public static final FastProvisioningSupportedEnum DISABLED = fromString("Disabled");

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

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

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