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

package com.azure.resourcemanager.storagemover.models;

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

/** The Agent status. */
public final class AgentStatus extends ExpandableStringEnum<AgentStatus> {
    /** Static value Registering for AgentStatus. */
    public static final AgentStatus REGISTERING = fromString("Registering");

    /** Static value Offline for AgentStatus. */
    public static final AgentStatus OFFLINE = fromString("Offline");

    /** Static value Online for AgentStatus. */
    public static final AgentStatus ONLINE = fromString("Online");

    /** Static value Executing for AgentStatus. */
    public static final AgentStatus EXECUTING = fromString("Executing");

    /** Static value RequiresAttention for AgentStatus. */
    public static final AgentStatus REQUIRES_ATTENTION = fromString("RequiresAttention");

    /** Static value Unregistering for AgentStatus. */
    public static final AgentStatus UNREGISTERING = fromString("Unregistering");

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

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

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