Class SearchServiceLimits

java.lang.Object
com.azure.search.documents.indexes.models.SearchServiceLimits
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchServiceLimits>

public final class SearchServiceLimits extends Object implements com.azure.json.JsonSerializable<SearchServiceLimits>
Represents various service level limits.
  • Constructor Details

    • SearchServiceLimits

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

    • getMaxFieldsPerIndex

      public Integer getMaxFieldsPerIndex()
      Get the maxFieldsPerIndex property: The maximum allowed fields per index.
      Returns:
      the maxFieldsPerIndex value.
    • setMaxFieldsPerIndex

      public SearchServiceLimits setMaxFieldsPerIndex(Integer maxFieldsPerIndex)
      Set the maxFieldsPerIndex property: The maximum allowed fields per index.
      Parameters:
      maxFieldsPerIndex - the maxFieldsPerIndex value to set.
      Returns:
      the SearchServiceLimits object itself.
    • getMaxFieldNestingDepthPerIndex

      public Integer getMaxFieldNestingDepthPerIndex()
      Get the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3.
      Returns:
      the maxFieldNestingDepthPerIndex value.
    • setMaxFieldNestingDepthPerIndex

      public SearchServiceLimits setMaxFieldNestingDepthPerIndex(Integer maxFieldNestingDepthPerIndex)
      Set the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3.
      Parameters:
      maxFieldNestingDepthPerIndex - the maxFieldNestingDepthPerIndex value to set.
      Returns:
      the SearchServiceLimits object itself.
    • getMaxComplexCollectionFieldsPerIndex

      public Integer getMaxComplexCollectionFieldsPerIndex()
      Get the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.
      Returns:
      the maxComplexCollectionFieldsPerIndex value.
    • setMaxComplexCollectionFieldsPerIndex

      public SearchServiceLimits setMaxComplexCollectionFieldsPerIndex(Integer maxComplexCollectionFieldsPerIndex)
      Set the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.
      Parameters:
      maxComplexCollectionFieldsPerIndex - the maxComplexCollectionFieldsPerIndex value to set.
      Returns:
      the SearchServiceLimits object itself.
    • getMaxComplexObjectsInCollectionsPerDocument

      public Integer getMaxComplexObjectsInCollectionsPerDocument()
      Get the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.
      Returns:
      the maxComplexObjectsInCollectionsPerDocument value.
    • setMaxComplexObjectsInCollectionsPerDocument

      public SearchServiceLimits setMaxComplexObjectsInCollectionsPerDocument(Integer maxComplexObjectsInCollectionsPerDocument)
      Set the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.
      Parameters:
      maxComplexObjectsInCollectionsPerDocument - the maxComplexObjectsInCollectionsPerDocument value to set.
      Returns:
      the SearchServiceLimits object itself.
    • getMaxStoragePerIndexInBytes

      public Long getMaxStoragePerIndexInBytes()
      Get the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.
      Returns:
      the maxStoragePerIndexInBytes value.
    • setMaxStoragePerIndexInBytes

      public SearchServiceLimits setMaxStoragePerIndexInBytes(Long maxStoragePerIndexInBytes)
      Set the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.
      Parameters:
      maxStoragePerIndexInBytes - the maxStoragePerIndexInBytes value to set.
      Returns:
      the SearchServiceLimits 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<SearchServiceLimits>
      Throws:
      IOException
    • fromJson

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