// 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 environment type - Production/Non Production. */
public final class SapEnvironmentType extends ExpandableStringEnum<SapEnvironmentType> {
    /** Static value NonProd for SapEnvironmentType. */
    public static final SapEnvironmentType NON_PROD = fromString("NonProd");

    /** Static value Prod for SapEnvironmentType. */
    public static final SapEnvironmentType PROD = fromString("Prod");

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

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

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