Class Usage
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.Usage
The usage data for a usage request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Current value for this metric.limit()
Get the limit property: Maximum value for this metric.name()
Get the name property: The name information for the metric.Get the nextResetTime property: Next reset time for current quota.Get the quotaPeriod property: The quota period used to summarize the usage values.status()
Get the status property: Cognitive Services account quota usage status.unit()
Get the unit property: The unit of the metric.void
validate()
Validates the instance.withCurrentValue
(Double currentValue) Set the currentValue property: Current value for this metric.Set the limit property: Maximum value for this metric.withName
(MetricName name) Set the name property: The name information for the metric.withNextResetTime
(String nextResetTime) Set the nextResetTime property: Next reset time for current quota.withQuotaPeriod
(String quotaPeriod) Set the quotaPeriod property: The quota period used to summarize the usage values.withStatus
(QuotaUsageStatus status) Set the status property: Cognitive Services account quota usage status.Set the unit property: The unit of the metric.
-
Constructor Details
-
Usage
public Usage()
-
-
Method Details
-
unit
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit of the metric.- Parameters:
unit
- the unit value to set.- Returns:
- the Usage object itself.
-
name
Get the name property: The name information for the metric.- Returns:
- the name value.
-
withName
Set the name property: The name information for the metric.- Parameters:
name
- the name value to set.- Returns:
- the Usage object itself.
-
quotaPeriod
Get the quotaPeriod property: The quota period used to summarize the usage values.- Returns:
- the quotaPeriod value.
-
withQuotaPeriod
Set the quotaPeriod property: The quota period used to summarize the usage values.- Parameters:
quotaPeriod
- the quotaPeriod value to set.- Returns:
- the Usage object itself.
-
limit
Get the limit property: Maximum value for this metric.- Returns:
- the limit value.
-
withLimit
Set the limit property: Maximum value for this metric.- Parameters:
limit
- the limit value to set.- Returns:
- the Usage object itself.
-
currentValue
Get the currentValue property: Current value for this metric.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: Current value for this metric.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the Usage object itself.
-
nextResetTime
Get the nextResetTime property: Next reset time for current quota.- Returns:
- the nextResetTime value.
-
withNextResetTime
Set the nextResetTime property: Next reset time for current quota.- Parameters:
nextResetTime
- the nextResetTime value to set.- Returns:
- the Usage object itself.
-
status
Get the status property: Cognitive Services account quota usage status.- Returns:
- the status value.
-
withStatus
Set the status property: Cognitive Services account quota usage status.- Parameters:
status
- the status value to set.- Returns:
- the Usage object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-