// 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;

/** An enumeration of possible target types when migrating from MySQL. */
public final class MySqlTargetPlatformType extends ExpandableStringEnum<MySqlTargetPlatformType> {
    /** Static value SqlServer for MySqlTargetPlatformType. */
    public static final MySqlTargetPlatformType SQL_SERVER = fromString("SqlServer");

    /** Static value AzureDbForMySQL for MySqlTargetPlatformType. */
    public static final MySqlTargetPlatformType AZURE_DB_FOR_MY_SQL = fromString("AzureDbForMySQL");

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

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

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