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

package com.azure.resourcemanager.costmanagement.models;

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

/** Direction of sort. */
public final class ReportConfigSortingType extends ExpandableStringEnum<ReportConfigSortingType> {
    /** Static value Ascending for ReportConfigSortingType. */
    public static final ReportConfigSortingType ASCENDING = fromString("Ascending");

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

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

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

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