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

package com.azure.resourcemanager.azurestack.models;

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

/** Compute role type (IaaS or PaaS). */
public final class ComputeRole extends ExpandableStringEnum<ComputeRole> {
    /** Static value None for ComputeRole. */
    public static final ComputeRole NONE = fromString("None");

    /** Static value IaaS for ComputeRole. */
    public static final ComputeRole IAAS = fromString("IaaS");

    /** Static value PaaS for ComputeRole. */
    public static final ComputeRole PAAS = fromString("PaaS");

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

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

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