Usage Class
- java.
lang. Object - com.
microsoft. azure. management. cognitiveservices. Usage
- com.
public class Usage
The usage data for a usage request.
Constructor Summary
Constructor | Description | |
---|---|---|
Usage() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
currentValue()
Get the current |
java.lang.Double |
limit()
Get the limit value. |
Metric |
name()
Get the name value. |
java.lang.String |
nextResetTime()
Get the next |
java.lang.String |
quotaPeriod()
Get the quota |
Quota |
status()
Get the status value. |
Unit |
unit()
Get the unit value. |
Usage |
withStatus(QuotaUsageStatus status)
Set the status value. |
Usage |
withUnit(UnitType unit)
Set the unit value. |
Methods inherited from java.lang.Object
Constructor Details
Usage
public Usage()
Method Details
currentValue
public Double currentValue()
Get the currentValue value.
Returns:
limit
public Double limit()
Get the limit value.
Returns:
name
public MetricName name()
Get the name value.
Returns:
nextResetTime
public String nextResetTime()
Get the nextResetTime value.
Returns:
quotaPeriod
public String quotaPeriod()
Get the quotaPeriod value.
Returns:
status
public QuotaUsageStatus status()
Get the status value.
Returns:
unit
public UnitType unit()
Get the unit value.
Returns:
withStatus
public Usage withStatus(QuotaUsageStatus status)
Set the status value.
Parameters:
Returns:
withUnit
public Usage withUnit(UnitType unit)
Set the unit value.
Parameters:
Returns:
Applies to
Azure SDK for Java