Class ResourceCounter
- java.lang.Object
-
- com.azure.search.documents.indexes.models.ResourceCounter
-
public final class ResourceCounter extends Object
Represents a resource's usage and quota.
-
-
Constructor Summary
Constructors Constructor Description ResourceCounter(long usage)
Creates an instance of ResourceCounter class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getQuota()
Get the quota property: The resource amount quota.long
getUsage()
Get the usage property: The resource usage amount.ResourceCounter
setQuota(Long quota)
Set the quota property: The resource amount quota.
-
-
-
Method Detail
-
getUsage
public long getUsage()
Get the usage property: The resource usage amount.- Returns:
- the usage value.
-
getQuota
public Long getQuota()
Get the quota property: The resource amount quota.- Returns:
- the quota value.
-
setQuota
public ResourceCounter setQuota(Long quota)
Set the quota property: The resource amount quota.- Parameters:
quota
- the quota value to set.- Returns:
- the ResourceCounter object itself.
-
-