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 -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoCompleteOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoCompleteOptions from the JsonReader.com.azure.core.util.BinaryDataGet the filter property: The filter for the autocomplete request.Get the keywords property: The keywords applied to all fields that support autocomplete operation.getLimit()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
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
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
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
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
Set the filter property: The filter for the autocomplete request.- Parameters:
filter- the filter value to set.- Returns:
- the AutoCompleteOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutoCompleteOptions>- Throws:
IOException
-
fromJson
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.
-