SearchIndexerLimits.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.Immutable;
  9. import com.fasterxml.jackson.annotation.JsonProperty;
  10. import java.time.Duration;

  11. /** The SearchIndexerLimits model. */
  12. @Immutable
  13. public final class SearchIndexerLimits {
  14.     /*
  15.      * The maximum duration that the indexer is permitted to run for one
  16.      * execution.
  17.      */
  18.     @JsonProperty(value = "maxRunTime", access = JsonProperty.Access.WRITE_ONLY)
  19.     private Duration maxRunTime;

  20.     /*
  21.      * The maximum size of a document, in bytes, which will be considered valid
  22.      * for indexing.
  23.      */
  24.     @JsonProperty(value = "maxDocumentExtractionSize", access = JsonProperty.Access.WRITE_ONLY)
  25.     private Long maxDocumentExtractionSize;

  26.     /*
  27.      * The maximum number of characters that will be extracted from a document
  28.      * picked up for indexing.
  29.      */
  30.     @JsonProperty(value = "maxDocumentContentCharactersToExtract", access = JsonProperty.Access.WRITE_ONLY)
  31.     private Long maxDocumentContentCharactersToExtract;

  32.     /**
  33.      * Get the maxRunTime property: The maximum duration that the indexer is permitted to run for one execution.
  34.      *
  35.      * @return the maxRunTime value.
  36.      */
  37.     public Duration getMaxRunTime() {
  38.         return this.maxRunTime;
  39.     }

  40.     /**
  41.      * Get the maxDocumentExtractionSize property: The maximum size of a document, in bytes, which will be considered
  42.      * valid for indexing.
  43.      *
  44.      * @return the maxDocumentExtractionSize value.
  45.      */
  46.     public Long getMaxDocumentExtractionSize() {
  47.         return this.maxDocumentExtractionSize;
  48.     }

  49.     /**
  50.      * Get the maxDocumentContentCharactersToExtract property: The maximum number of characters that will be extracted
  51.      * from a document picked up for indexing.
  52.      *
  53.      * @return the maxDocumentContentCharactersToExtract value.
  54.      */
  55.     public Long getMaxDocumentContentCharactersToExtract() {
  56.         return this.maxDocumentContentCharactersToExtract;
  57.     }
  58. }