microsoft-bonsai-api-main/Java/com.microsoft.bonsai.api/simulator/generated/src/main/java/com/microsoft/bonsai/simulatorapi/models/SimulatorContextTypesDeploymentMode.java
<filename>microsoft-bonsai-api-main/Java/com.microsoft.bonsai.api/simulator/generated/src/main/java/com/microsoft/bonsai/simulatorapi/models/SimulatorContextTypesDeploymentMode.java/**
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

package com.microsoft.bonsai.simulatorapi.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Defines values for SimulatorContextTypesDeploymentMode.
 */
public enum SimulatorContextTypesDeploymentMode {
    /** Enum value Unspecified. */
    UNSPECIFIED("Unspecified"),

    /** Enum value Hosted. */
    HOSTED("Hosted"),

    /** Enum value Testing. */
    TESTING("Testing");

    /** The actual serialized value for a SimulatorContextTypesDeploymentMode instance. */
    private String value;

    SimulatorContextTypesDeploymentMode(String value) {
        this.value = value;
    }

    /**
     * Parses a serialized value to a SimulatorContextTypesDeploymentMode instance.
     *
     * @param value the serialized value to parse.
     * @return the parsed SimulatorContextTypesDeploymentMode object, or null if unable to parse.
     */
    @JsonCreator
    public static SimulatorContextTypesDeploymentMode fromString(String value) {
        SimulatorContextTypesDeploymentMode[] items = SimulatorContextTypesDeploymentMode.values();
        for (SimulatorContextTypesDeploymentMode item : items) {
            if (item.toString().equalsIgnoreCase(value)) {
                return item;
            }
        }
        return null;
    }

    @JsonValue
    @Override
    public String toString() {
        return this.value;
    }
}
