/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.appplatform.v2020_07_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for RuntimeVersion.
 */
public final class RuntimeVersion extends ExpandableStringEnum<RuntimeVersion> {
    /** Static value Java_8 for RuntimeVersion. */
    public static final RuntimeVersion JAVA_8 = fromString("Java_8");

    /** Static value Java_11 for RuntimeVersion. */
    public static final RuntimeVersion JAVA_11 = fromString("Java_11");

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

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