SearchServiceCounters.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.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;

  11. /** Represents service-level resource counters and quotas. */
  12. @Fluent
  13. public final class SearchServiceCounters {
  14.     /*
  15.      * Total number of documents across all indexes in the service.
  16.      */
  17.     @JsonProperty(value = "documentCount", required = true)
  18.     private ResourceCounter documentCounter;

  19.     /*
  20.      * Total number of indexes.
  21.      */
  22.     @JsonProperty(value = "indexesCount", required = true)
  23.     private ResourceCounter indexCounter;

  24.     /*
  25.      * Total number of indexers.
  26.      */
  27.     @JsonProperty(value = "indexersCount", required = true)
  28.     private ResourceCounter indexerCounter;

  29.     /*
  30.      * Total number of data sources.
  31.      */
  32.     @JsonProperty(value = "dataSourcesCount", required = true)
  33.     private ResourceCounter dataSourceCounter;

  34.     /*
  35.      * Total size of used storage in bytes.
  36.      */
  37.     @JsonProperty(value = "storageSize", required = true)
  38.     private ResourceCounter storageSizeCounter;

  39.     /*
  40.      * Total number of synonym maps.
  41.      */
  42.     @JsonProperty(value = "synonymMaps", required = true)
  43.     private ResourceCounter synonymMapCounter;

  44.     /*
  45.      * Total number of skillsets.
  46.      */
  47.     @JsonProperty(value = "skillsetCount")
  48.     private ResourceCounter skillsetCounter;

  49.     /**
  50.      * Creates an instance of SearchServiceCounters class.
  51.      *
  52.      * @param documentCounter the documentCounter value to set.
  53.      * @param indexCounter the indexCounter value to set.
  54.      * @param indexerCounter the indexerCounter value to set.
  55.      * @param dataSourceCounter the dataSourceCounter value to set.
  56.      * @param storageSizeCounter the storageSizeCounter value to set.
  57.      * @param synonymMapCounter the synonymMapCounter value to set.
  58.      */
  59.     @JsonCreator
  60.     public SearchServiceCounters(
  61.             @JsonProperty(value = "documentCount", required = true) ResourceCounter documentCounter,
  62.             @JsonProperty(value = "indexesCount", required = true) ResourceCounter indexCounter,
  63.             @JsonProperty(value = "indexersCount", required = true) ResourceCounter indexerCounter,
  64.             @JsonProperty(value = "dataSourcesCount", required = true) ResourceCounter dataSourceCounter,
  65.             @JsonProperty(value = "storageSize", required = true) ResourceCounter storageSizeCounter,
  66.             @JsonProperty(value = "synonymMaps", required = true) ResourceCounter synonymMapCounter) {
  67.         this.documentCounter = documentCounter;
  68.         this.indexCounter = indexCounter;
  69.         this.indexerCounter = indexerCounter;
  70.         this.dataSourceCounter = dataSourceCounter;
  71.         this.storageSizeCounter = storageSizeCounter;
  72.         this.synonymMapCounter = synonymMapCounter;
  73.     }

  74.     /**
  75.      * Get the documentCounter property: Total number of documents across all indexes in the service.
  76.      *
  77.      * @return the documentCounter value.
  78.      */
  79.     public ResourceCounter getDocumentCounter() {
  80.         return this.documentCounter;
  81.     }

  82.     /**
  83.      * Get the indexCounter property: Total number of indexes.
  84.      *
  85.      * @return the indexCounter value.
  86.      */
  87.     public ResourceCounter getIndexCounter() {
  88.         return this.indexCounter;
  89.     }

  90.     /**
  91.      * Get the indexerCounter property: Total number of indexers.
  92.      *
  93.      * @return the indexerCounter value.
  94.      */
  95.     public ResourceCounter getIndexerCounter() {
  96.         return this.indexerCounter;
  97.     }

  98.     /**
  99.      * Get the dataSourceCounter property: Total number of data sources.
  100.      *
  101.      * @return the dataSourceCounter value.
  102.      */
  103.     public ResourceCounter getDataSourceCounter() {
  104.         return this.dataSourceCounter;
  105.     }

  106.     /**
  107.      * Get the storageSizeCounter property: Total size of used storage in bytes.
  108.      *
  109.      * @return the storageSizeCounter value.
  110.      */
  111.     public ResourceCounter getStorageSizeCounter() {
  112.         return this.storageSizeCounter;
  113.     }

  114.     /**
  115.      * Get the synonymMapCounter property: Total number of synonym maps.
  116.      *
  117.      * @return the synonymMapCounter value.
  118.      */
  119.     public ResourceCounter getSynonymMapCounter() {
  120.         return this.synonymMapCounter;
  121.     }

  122.     /**
  123.      * Get the skillsetCounter property: Total number of skillsets.
  124.      *
  125.      * @return the skillsetCounter value.
  126.      */
  127.     public ResourceCounter getSkillsetCounter() {
  128.         return this.skillsetCounter;
  129.     }

  130.     /**
  131.      * Set the skillsetCounter property: Total number of skillsets.
  132.      *
  133.      * @param skillsetCounter the skillsetCounter value to set.
  134.      * @return the SearchServiceCounters object itself.
  135.      */
  136.     public SearchServiceCounters setSkillsetCounter(ResourceCounter skillsetCounter) {
  137.         this.skillsetCounter = skillsetCounter;
  138.         return this;
  139.     }
  140. }