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

package com.azure.resourcemanager.machinelearningservices.models;

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

/** Defines values for OrderString. */
public final class OrderString extends ExpandableStringEnum<OrderString> {
    /** Static value CreatedAtDesc for OrderString. */
    public static final OrderString CREATED_AT_DESC = fromString("CreatedAtDesc");

    /** Static value CreatedAtAsc for OrderString. */
    public static final OrderString CREATED_AT_ASC = fromString("CreatedAtAsc");

    /** Static value UpdatedAtDesc for OrderString. */
    public static final OrderString UPDATED_AT_DESC = fromString("UpdatedAtDesc");

    /** Static value UpdatedAtAsc for OrderString. */
    public static final OrderString UPDATED_AT_ASC = fromString("UpdatedAtAsc");

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

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