Class SearchFacetItem

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

public final class SearchFacetItem extends Object implements com.azure.json.JsonSerializable<SearchFacetItem>
The content of a search facet result item.
  • Constructor Details

    • SearchFacetItem

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

    • getCount

      public Integer getCount()
      Get the count property: The count of the facet item.
      Returns:
      the count value.
    • setCount

      public SearchFacetItem setCount(Integer count)
      Set the count property: The count of the facet item.
      Parameters:
      count - the count value to set.
      Returns:
      the SearchFacetItem object itself.
    • getFacet

      public String getFacet()
      Get the facet property: The name of the facet item.
      Returns:
      the facet value.
    • setFacet

      public SearchFacetItem setFacet(String facet)
      Set the facet property: The name of the facet item.
      Parameters:
      facet - the facet value to set.
      Returns:
      the SearchFacetItem object itself.
    • getSort

      public SearchFacetSort getSort()
      Get the sort property: Define the sorting criteria for items.
      Returns:
      the sort value.
    • setSort

      public SearchFacetItem setSort(SearchFacetSort sort)
      Set the sort property: Define the sorting criteria for items.
      Parameters:
      sort - the sort value to set.
      Returns:
      the SearchFacetItem 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<SearchFacetItem>
      Throws:
      IOException
    • fromJson

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