Usage Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. Usage
- com.
public final class Usage
The usage data for a usage request.
Constructor Summary
Constructor | Description |
---|---|
Usage() |
Creates an instance of Usage class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
currentValue()
Get the current |
Double |
limit()
Get the limit property: Maximum value for this metric. |
Metric |
name()
Get the name property: The name information for the metric. |
String |
nextResetTime()
Get the next |
String |
quotaPeriod()
Get the quota |
Quota |
status()
Get the status property: Cognitive Services account quota usage status. |
Unit |
unit()
Get the unit property: The unit of the metric. |
void |
validate()
Validates the instance. |
Usage |
withCurrentValue(Double currentValue)
Set the current |
Usage |
withLimit(Double limit)
Set the limit property: Maximum value for this metric. |
Usage |
withName(MetricName name)
Set the name property: The name information for the metric. |
Usage |
withNextResetTime(String nextResetTime)
Set the next |
Usage |
withQuotaPeriod(String quotaPeriod)
Set the quota |
Usage |
withStatus(QuotaUsageStatus status)
Set the status property: Cognitive Services account quota usage status. |
Usage |
withUnit(UnitType unit)
Set the unit property: The unit of the metric. |
Methods inherited from java.lang.Object
Constructor Details
Usage
public Usage()
Creates an instance of Usage class.
Method Details
currentValue
public Double currentValue()
Get the currentValue property: Current value for this metric.
Returns:
limit
public Double limit()
Get the limit property: Maximum value for this metric.
Returns:
name
public MetricName name()
Get the name property: The name information for the metric.
Returns:
nextResetTime
public String nextResetTime()
Get the nextResetTime property: Next reset time for current quota.
Returns:
quotaPeriod
public String quotaPeriod()
Get the quotaPeriod property: The quota period used to summarize the usage values.
Returns:
status
public QuotaUsageStatus status()
Get the status property: Cognitive Services account quota usage status.
Returns:
unit
public UnitType unit()
Get the unit property: The unit of the metric.
Returns:
validate
public void validate()
Validates the instance.
withCurrentValue
public Usage withCurrentValue(Double currentValue)
Set the currentValue property: Current value for this metric.
Parameters:
Returns:
withLimit
public Usage withLimit(Double limit)
Set the limit property: Maximum value for this metric.
Parameters:
Returns:
withName
public Usage withName(MetricName name)
Set the name property: The name information for the metric.
Parameters:
Returns:
withNextResetTime
public Usage withNextResetTime(String nextResetTime)
Set the nextResetTime property: Next reset time for current quota.
Parameters:
Returns:
withQuotaPeriod
public Usage withQuotaPeriod(String quotaPeriod)
Set the quotaPeriod property: The quota period used to summarize the usage values.
Parameters:
Returns:
withStatus
public Usage withStatus(QuotaUsageStatus status)
Set the status property: Cognitive Services account quota usage status.
Parameters:
Returns:
withUnit
public Usage withUnit(UnitType unit)
Set the unit property: The unit of the metric.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for