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

package com.azure.resourcemanager.datamigration.models;

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

/** The scalability approach. */
public final class ServiceScalability extends ExpandableStringEnum<ServiceScalability> {
    /** Static value none for ServiceScalability. */
    public static final ServiceScalability NONE = fromString("none");

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

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

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

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

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