ResourceCounter Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. ResourceCounter
- com.
Implements
public final class ResourceCounter
implements JsonSerializable<ResourceCounter>
Represents a resource's usage and quota.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| Long |
getQuota()
Get the quota property: The resource amount quota. |
| long |
getUsage()
Get the usage property: The resource usage amount. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ResourceCounter fromJson(JsonReader jsonReader)
Reads an instance of ResourceCounter from the JsonReader.
Parameters:
Returns:
Throws:
getQuota
public Long getQuota()
Get the quota property: The resource amount quota.
Returns:
getUsage
public long getUsage()
Get the usage property: The resource usage amount.
Returns: