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

package com.azure.resourcemanager.webpubsub.models;

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

/** The scale type applicable to the sku. */
public final class ScaleType extends ExpandableStringEnum<ScaleType> {
    /** Static value None for ScaleType. */
    public static final ScaleType NONE = fromString("None");

    /** Static value Manual for ScaleType. */
    public static final ScaleType MANUAL = fromString("Manual");

    /** Static value Automatic for ScaleType. */
    public static final ScaleType AUTOMATIC = fromString("Automatic");

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

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

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