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

package com.azure.resourcemanager.hybridcontainerservice.models;

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

/**
 * Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is
 * 'User'.
 */
public final class Mode extends ExpandableStringEnum<Mode> {
    /** Static value System for Mode. */
    public static final Mode SYSTEM = fromString("System");

    /** Static value LB for Mode. */
    public static final Mode LB = fromString("LB");

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

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

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

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