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

package com.azure.resourcemanager.machinelearning.models;

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

/** Enum to determine endpoint compute type. */
public final class EndpointComputeType extends ExpandableStringEnum<EndpointComputeType> {
    /** Static value Managed for EndpointComputeType. */
    public static final EndpointComputeType MANAGED = fromString("Managed");

    /** Static value Kubernetes for EndpointComputeType. */
    public static final EndpointComputeType KUBERNETES = fromString("Kubernetes");

    /** Static value AzureMLCompute for EndpointComputeType. */
    public static final EndpointComputeType AZURE_MLCOMPUTE = fromString("AzureMLCompute");

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

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

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