Class SearchSort
java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchSort
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchSort>
The sort parameters for search.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchSortfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchSort from the JsonReader.name()Get the name property: The name of the field the search query is sorted on.order()Get the order property: The sort order of the search.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
name
Get the name property: The name of the field the search query is sorted on.- Returns:
- the name value.
-
order
Get the order property: The sort order of the search.- Returns:
- the order value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchSort>- Throws:
IOException
-
fromJson
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.
-