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

package com.azure.resourcemanager.network.models;

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

/** Describes if results should be in ascending/descending order. */
public final class FirewallPolicyIdpsQuerySortOrder extends ExpandableStringEnum<FirewallPolicyIdpsQuerySortOrder> {
    /** Static value Ascending for FirewallPolicyIdpsQuerySortOrder. */
    public static final FirewallPolicyIdpsQuerySortOrder ASCENDING = fromString("Ascending");

    /** Static value Descending for FirewallPolicyIdpsQuerySortOrder. */
    public static final FirewallPolicyIdpsQuerySortOrder DESCENDING = fromString("Descending");

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

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

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