java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchSort

public final class SearchSort extends Object
The sort parameters for search.
  • Constructor Details

    • SearchSort

      public SearchSort()
  • Method Details

    • name

      public String name()
      Get the name property: The name of the field the search query is sorted on.
      Returns:
      the name value.
    • withName

      public SearchSort withName(String name)
      Set the name property: The name of the field the search query is sorted on.
      Parameters:
      name - the name value to set.
      Returns:
      the SearchSort object itself.
    • order

      public SearchSortEnum order()
      Get the order property: The sort order of the search.
      Returns:
      the order value.
    • withOrder

      public SearchSort withOrder(SearchSortEnum order)
      Set the order property: The sort order of the search.
      Parameters:
      order - the order value to set.
      Returns:
      the SearchSort object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.