Class AutoCompleteOptions

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

public final class AutoCompleteOptions extends Object implements com.azure.json.JsonSerializable<AutoCompleteOptions>
The payload of autocomplete request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AutoCompleteOptions class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AutoCompleteOptions from the JsonReader.
    com.azure.core.util.BinaryData
    Get the filter property: The filter for the autocomplete request.
    Get the keywords property: The keywords applied to all fields that support autocomplete operation.
    Get the limit property: The number of autocomplete results we hope to return.
    setFilter(com.azure.core.util.BinaryData filter)
    Set the filter property: The filter for the autocomplete request.
    setKeywords(String keywords)
    Set the keywords property: The keywords applied to all fields that support autocomplete operation.
    Set the limit property: The number of autocomplete results we hope to return.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AutoCompleteOptions

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

    • getKeywords

      public String getKeywords()
      Get the keywords property: The keywords applied to all fields that support autocomplete operation. It must be at least 1 character, and no more than 100 characters.
      Returns:
      the keywords value.
    • setKeywords

      public AutoCompleteOptions setKeywords(String keywords)
      Set the keywords property: The keywords applied to all fields that support autocomplete operation. It must be at least 1 character, and no more than 100 characters.
      Parameters:
      keywords - the keywords value to set.
      Returns:
      the AutoCompleteOptions object itself.
    • getLimit

      public Integer getLimit()
      Get the limit property: The number of autocomplete results we hope to return. The default value is 50. The value must be a number between 1 and 100.
      Returns:
      the limit value.
    • setLimit

      public AutoCompleteOptions setLimit(Integer limit)
      Set the limit property: The number of autocomplete results we hope to return. The default value is 50. The value must be a number between 1 and 100.
      Parameters:
      limit - the limit value to set.
      Returns:
      the AutoCompleteOptions object itself.
    • getFilter

      public com.azure.core.util.BinaryData getFilter()
      Get the filter property: The filter for the autocomplete request.
      Returns:
      the filter value.
    • setFilter

      public AutoCompleteOptions setFilter(com.azure.core.util.BinaryData filter)
      Set the filter property: The filter for the autocomplete request.
      Parameters:
      filter - the filter value to set.
      Returns:
      the AutoCompleteOptions 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<AutoCompleteOptions>
      Throws:
      IOException
    • fromJson

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