Class SearchFacetSort

java.lang.Object
com.azure.analytics.purview.datamap.models.SearchFacetSort
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchFacetSort>

public final class SearchFacetSort extends Object implements com.azure.json.JsonSerializable<SearchFacetSort>
The sorting criteria.
  • Constructor Details

    • SearchFacetSort

      public SearchFacetSort()
      Creates an instance of SearchFacetSort class.
  • Method Details

    • getCount

      public SearchSortOrder getCount()
      Get the count property: Order by count.
      Returns:
      the count value.
    • setCount

      public SearchFacetSort setCount(SearchSortOrder count)
      Set the count property: Order by count.
      Parameters:
      count - the count value to set.
      Returns:
      the SearchFacetSort object itself.
    • getValue

      public SearchSortOrder getValue()
      Get the value property: Order by value.
      Returns:
      the value value.
    • setValue

      public SearchFacetSort setValue(SearchSortOrder value)
      Set the value property: Order by value.
      Parameters:
      value - the value value to set.
      Returns:
      the SearchFacetSort object itself.
    • toJson

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

      public static SearchFacetSort fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SearchFacetSort from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SearchFacetSort 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 SearchFacetSort.