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 Details

    • FullTextPolicy

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

    • defaultLanguage

      public String defaultLanguage()
      Get the defaultLanguage property: The default language for a full text paths.
      Returns:
      the defaultLanguage value.
    • withDefaultLanguage

      public FullTextPolicy withDefaultLanguage(String defaultLanguage)
      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

      public List<FullTextPath> fullTextPaths()
      Get the fullTextPaths property: List of FullText Paths.
      Returns:
      the fullTextPaths value.
    • withFullTextPaths

      public FullTextPolicy withFullTextPaths(List<FullTextPath> fullTextPaths)
      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

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

      public static FullTextPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.