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

/** The type of SAP deployment, single server or Three tier. */
public final class SapDeploymentType extends ExpandableStringEnum<SapDeploymentType> {
    /** Static value SingleServer for SapDeploymentType. */
    public static final SapDeploymentType SINGLE_SERVER = fromString("SingleServer");

    /** Static value ThreeTier for SapDeploymentType. */
    public static final SapDeploymentType THREE_TIER = fromString("ThreeTier");

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

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

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