Usage Class

  • java.lang.Object
    • com.microsoft.azure.management.cognitiveservices.Usage

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 currentValue value.

java.lang.Double limit()

Get the limit value.

MetricName name()

Get the name value.

java.lang.String nextResetTime()

Get the nextResetTime value.

java.lang.String quotaPeriod()

Get the quotaPeriod value.

QuotaUsageStatus status()

Get the status value.

UnitType 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Usage

public Usage()

Method Details

currentValue

public Double currentValue()

Get the currentValue value.

Returns:

the currentValue value

limit

public Double limit()

Get the limit value.

Returns:

the limit value

name

public MetricName name()

Get the name value.

Returns:

the name value

nextResetTime

public String nextResetTime()

Get the nextResetTime value.

Returns:

the nextResetTime value

quotaPeriod

public String quotaPeriod()

Get the quotaPeriod value.

Returns:

the quotaPeriod value

status

public QuotaUsageStatus status()

Get the status value.

Returns:

the status value

unit

public UnitType unit()

Get the unit value.

Returns:

the unit value

withStatus

public Usage withStatus(QuotaUsageStatus status)

Set the status value.

Parameters:

status - the status value to set

Returns:

the Usage object itself.

withUnit

public Usage withUnit(UnitType unit)

Set the unit value.

Parameters:

unit - the unit value to set

Returns:

the Usage object itself.

Applies to