SearchServiceLimits.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonProperty;

  10. /** Represents various service level limits. */
  11. @Fluent
  12. public final class SearchServiceLimits {
  13.     /*
  14.      * The maximum allowed fields per index.
  15.      */
  16.     @JsonProperty(value = "maxFieldsPerIndex")
  17.     private Integer maxFieldsPerIndex;

  18.     /*
  19.      * The maximum depth which you can nest sub-fields in an index, including
  20.      * the top-level complex field. For example, a/b/c has a nesting depth of
  21.      * 3.
  22.      */
  23.     @JsonProperty(value = "maxFieldNestingDepthPerIndex")
  24.     private Integer maxFieldNestingDepthPerIndex;

  25.     /*
  26.      * The maximum number of fields of type Collection(Edm.ComplexType) allowed
  27.      * in an index.
  28.      */
  29.     @JsonProperty(value = "maxComplexCollectionFieldsPerIndex")
  30.     private Integer maxComplexCollectionFieldsPerIndex;

  31.     /*
  32.      * The maximum number of objects in complex collections allowed per
  33.      * document.
  34.      */
  35.     @JsonProperty(value = "maxComplexObjectsInCollectionsPerDocument")
  36.     private Integer maxComplexObjectsInCollectionsPerDocument;

  37.     /**
  38.      * Get the maxFieldsPerIndex property: The maximum allowed fields per index.
  39.      *
  40.      * @return the maxFieldsPerIndex value.
  41.      */
  42.     public Integer getMaxFieldsPerIndex() {
  43.         return this.maxFieldsPerIndex;
  44.     }

  45.     /**
  46.      * Set the maxFieldsPerIndex property: The maximum allowed fields per index.
  47.      *
  48.      * @param maxFieldsPerIndex the maxFieldsPerIndex value to set.
  49.      * @return the SearchServiceLimits object itself.
  50.      */
  51.     public SearchServiceLimits setMaxFieldsPerIndex(Integer maxFieldsPerIndex) {
  52.         this.maxFieldsPerIndex = maxFieldsPerIndex;
  53.         return this;
  54.     }

  55.     /**
  56.      * Get the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index,
  57.      * including the top-level complex field. For example, a/b/c has a nesting depth of 3.
  58.      *
  59.      * @return the maxFieldNestingDepthPerIndex value.
  60.      */
  61.     public Integer getMaxFieldNestingDepthPerIndex() {
  62.         return this.maxFieldNestingDepthPerIndex;
  63.     }

  64.     /**
  65.      * Set the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index,
  66.      * including the top-level complex field. For example, a/b/c has a nesting depth of 3.
  67.      *
  68.      * @param maxFieldNestingDepthPerIndex the maxFieldNestingDepthPerIndex value to set.
  69.      * @return the SearchServiceLimits object itself.
  70.      */
  71.     public SearchServiceLimits setMaxFieldNestingDepthPerIndex(Integer maxFieldNestingDepthPerIndex) {
  72.         this.maxFieldNestingDepthPerIndex = maxFieldNestingDepthPerIndex;
  73.         return this;
  74.     }

  75.     /**
  76.      * Get the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type
  77.      * Collection(Edm.ComplexType) allowed in an index.
  78.      *
  79.      * @return the maxComplexCollectionFieldsPerIndex value.
  80.      */
  81.     public Integer getMaxComplexCollectionFieldsPerIndex() {
  82.         return this.maxComplexCollectionFieldsPerIndex;
  83.     }

  84.     /**
  85.      * Set the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type
  86.      * Collection(Edm.ComplexType) allowed in an index.
  87.      *
  88.      * @param maxComplexCollectionFieldsPerIndex the maxComplexCollectionFieldsPerIndex value to set.
  89.      * @return the SearchServiceLimits object itself.
  90.      */
  91.     public SearchServiceLimits setMaxComplexCollectionFieldsPerIndex(Integer maxComplexCollectionFieldsPerIndex) {
  92.         this.maxComplexCollectionFieldsPerIndex = maxComplexCollectionFieldsPerIndex;
  93.         return this;
  94.     }

  95.     /**
  96.      * Get the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections
  97.      * allowed per document.
  98.      *
  99.      * @return the maxComplexObjectsInCollectionsPerDocument value.
  100.      */
  101.     public Integer getMaxComplexObjectsInCollectionsPerDocument() {
  102.         return this.maxComplexObjectsInCollectionsPerDocument;
  103.     }

  104.     /**
  105.      * Set the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections
  106.      * allowed per document.
  107.      *
  108.      * @param maxComplexObjectsInCollectionsPerDocument the maxComplexObjectsInCollectionsPerDocument value to set.
  109.      * @return the SearchServiceLimits object itself.
  110.      */
  111.     public SearchServiceLimits setMaxComplexObjectsInCollectionsPerDocument(
  112.             Integer maxComplexObjectsInCollectionsPerDocument) {
  113.         this.maxComplexObjectsInCollectionsPerDocument = maxComplexObjectsInCollectionsPerDocument;
  114.         return this;
  115.     }
  116. }