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

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** List of available columns for sorting. */
@Fluent
public final class ThreatIntelligenceSortingCriteria {
    /*
     * Column name
     */
    @JsonProperty(value = "itemKey")
    private String itemKey;

    /*
     * Sorting order (ascending/descending/unsorted).
     */
    @JsonProperty(value = "sortOrder")
    private ThreatIntelligenceSortingCriteriaEnum sortOrder;

    /**
     * Get the itemKey property: Column name.
     *
     * @return the itemKey value.
     */
    public String itemKey() {
        return this.itemKey;
    }

    /**
     * Set the itemKey property: Column name.
     *
     * @param itemKey the itemKey value to set.
     * @return the ThreatIntelligenceSortingCriteria object itself.
     */
    public ThreatIntelligenceSortingCriteria withItemKey(String itemKey) {
        this.itemKey = itemKey;
        return this;
    }

    /**
     * Get the sortOrder property: Sorting order (ascending/descending/unsorted).
     *
     * @return the sortOrder value.
     */
    public ThreatIntelligenceSortingCriteriaEnum sortOrder() {
        return this.sortOrder;
    }

    /**
     * Set the sortOrder property: Sorting order (ascending/descending/unsorted).
     *
     * @param sortOrder the sortOrder value to set.
     * @return the ThreatIntelligenceSortingCriteria object itself.
     */
    public ThreatIntelligenceSortingCriteria withSortOrder(ThreatIntelligenceSortingCriteriaEnum sortOrder) {
        this.sortOrder = sortOrder;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
