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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

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

/** Enabled or Disabled Enum. */
public final class StateEnum extends ExpandableStringEnum<StateEnum> {
    /** Static value DISABLED for StateEnum. */
    public static final StateEnum DISABLED = fromString("DISABLED");

    /** Static value ENABLED for StateEnum. */
    public static final StateEnum ENABLED = fromString("ENABLED");

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

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

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