Class FullTextPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.FullTextPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FullTextPolicy>
public final class FullTextPolicy
extends Object
implements com.azure.json.JsonSerializable<FullTextPolicy>
Cosmos DB FullText Policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultLanguage property: The default language for a full text paths.static FullTextPolicy
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FullTextPolicy from the JsonReader.Get the fullTextPaths property: List of FullText Paths.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDefaultLanguage
(String defaultLanguage) Set the defaultLanguage property: The default language for a full text paths.withFullTextPaths
(List<FullTextPath> fullTextPaths) Set the fullTextPaths property: List of FullText Paths.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
-
FullTextPolicy
public FullTextPolicy()Creates an instance of FullTextPolicy class.
-
-
Method Details
-
defaultLanguage
Get the defaultLanguage property: The default language for a full text paths.- Returns:
- the defaultLanguage value.
-
withDefaultLanguage
Set the defaultLanguage property: The default language for a full text paths.- Parameters:
defaultLanguage
- the defaultLanguage value to set.- Returns:
- the FullTextPolicy object itself.
-
fullTextPaths
Get the fullTextPaths property: List of FullText Paths.- Returns:
- the fullTextPaths value.
-
withFullTextPaths
Set the fullTextPaths property: List of FullText Paths.- Parameters:
fullTextPaths
- the fullTextPaths value to set.- Returns:
- the FullTextPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FullTextPolicy>
- Throws:
IOException
-
fromJson
Reads an instance of FullTextPolicy from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FullTextPolicy 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 FullTextPolicy.
-