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

package com.azure.resourcemanager.workloads.models;

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

/** Defines the supported SAP Database types. */
public final class SapDatabaseType extends ExpandableStringEnum<SapDatabaseType> {
    /** Static value HANA for SapDatabaseType. */
    public static final SapDatabaseType HANA = fromString("HANA");

    /** Static value DB2 for SapDatabaseType. */
    public static final SapDatabaseType DB2 = fromString("DB2");

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

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

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