Class SearchSort

java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchSort
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchSort>

public final class SearchSort extends Object implements com.azure.json.JsonSerializable<SearchSort>
The sort parameters for search.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SearchSort
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SearchSort from the JsonReader.
    Get the name property: The name of the field the search query is sorted on.
    Get the order property: The sort order of the search.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • 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.
    • order

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SearchSort>
      Throws:
      IOException
    • fromJson

      public static SearchSort fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SearchSort from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SearchSort if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SearchSort.