SearchServiceCounters.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents service-level resource counters and quotas. */
@Fluent
public final class SearchServiceCounters {
/*
* Total number of documents across all indexes in the service.
*/
@JsonProperty(value = "documentCount", required = true)
private ResourceCounter documentCounter;
/*
* Total number of indexes.
*/
@JsonProperty(value = "indexesCount", required = true)
private ResourceCounter indexCounter;
/*
* Total number of indexers.
*/
@JsonProperty(value = "indexersCount", required = true)
private ResourceCounter indexerCounter;
/*
* Total number of data sources.
*/
@JsonProperty(value = "dataSourcesCount", required = true)
private ResourceCounter dataSourceCounter;
/*
* Total size of used storage in bytes.
*/
@JsonProperty(value = "storageSize", required = true)
private ResourceCounter storageSizeCounter;
/*
* Total number of synonym maps.
*/
@JsonProperty(value = "synonymMaps", required = true)
private ResourceCounter synonymMapCounter;
/*
* Total number of skillsets.
*/
@JsonProperty(value = "skillsetCount")
private ResourceCounter skillsetCounter;
/**
* Creates an instance of SearchServiceCounters class.
*
* @param documentCounter the documentCounter value to set.
* @param indexCounter the indexCounter value to set.
* @param indexerCounter the indexerCounter value to set.
* @param dataSourceCounter the dataSourceCounter value to set.
* @param storageSizeCounter the storageSizeCounter value to set.
* @param synonymMapCounter the synonymMapCounter value to set.
*/
@JsonCreator
public SearchServiceCounters(
@JsonProperty(value = "documentCount", required = true) ResourceCounter documentCounter,
@JsonProperty(value = "indexesCount", required = true) ResourceCounter indexCounter,
@JsonProperty(value = "indexersCount", required = true) ResourceCounter indexerCounter,
@JsonProperty(value = "dataSourcesCount", required = true) ResourceCounter dataSourceCounter,
@JsonProperty(value = "storageSize", required = true) ResourceCounter storageSizeCounter,
@JsonProperty(value = "synonymMaps", required = true) ResourceCounter synonymMapCounter) {
this.documentCounter = documentCounter;
this.indexCounter = indexCounter;
this.indexerCounter = indexerCounter;
this.dataSourceCounter = dataSourceCounter;
this.storageSizeCounter = storageSizeCounter;
this.synonymMapCounter = synonymMapCounter;
}
/**
* Get the documentCounter property: Total number of documents across all indexes in the service.
*
* @return the documentCounter value.
*/
public ResourceCounter getDocumentCounter() {
return this.documentCounter;
}
/**
* Get the indexCounter property: Total number of indexes.
*
* @return the indexCounter value.
*/
public ResourceCounter getIndexCounter() {
return this.indexCounter;
}
/**
* Get the indexerCounter property: Total number of indexers.
*
* @return the indexerCounter value.
*/
public ResourceCounter getIndexerCounter() {
return this.indexerCounter;
}
/**
* Get the dataSourceCounter property: Total number of data sources.
*
* @return the dataSourceCounter value.
*/
public ResourceCounter getDataSourceCounter() {
return this.dataSourceCounter;
}
/**
* Get the storageSizeCounter property: Total size of used storage in bytes.
*
* @return the storageSizeCounter value.
*/
public ResourceCounter getStorageSizeCounter() {
return this.storageSizeCounter;
}
/**
* Get the synonymMapCounter property: Total number of synonym maps.
*
* @return the synonymMapCounter value.
*/
public ResourceCounter getSynonymMapCounter() {
return this.synonymMapCounter;
}
/**
* Get the skillsetCounter property: Total number of skillsets.
*
* @return the skillsetCounter value.
*/
public ResourceCounter getSkillsetCounter() {
return this.skillsetCounter;
}
/**
* Set the skillsetCounter property: Total number of skillsets.
*
* @param skillsetCounter the skillsetCounter value to set.
* @return the SearchServiceCounters object itself.
*/
public SearchServiceCounters setSkillsetCounter(ResourceCounter skillsetCounter) {
this.skillsetCounter = skillsetCounter;
return this;
}
}