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

package com.azure.resourcemanager.networkcloud.models;

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

/**
 * The selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the
 * features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every
 * Kubernetes cluster must contain at least one system node pool with at least one node.
 */
public final class AgentPoolMode extends ExpandableStringEnum<AgentPoolMode> {
    /** Static value System for AgentPoolMode. */
    public static final AgentPoolMode SYSTEM = fromString("System");

    /** Static value User for AgentPoolMode. */
    public static final AgentPoolMode USER = fromString("User");

    /** Static value NotApplicable for AgentPoolMode. */
    public static final AgentPoolMode NOT_APPLICABLE = fromString("NotApplicable");

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

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

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