UsageInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.UsageInner

Implements

public class UsageInner
implements JsonSerializable<UsageInner>

The usage data for a usage request.

Constructor Summary

Constructor Description
UsageInner()

Creates an instance of UsageInner class.

Method Summary

Modifier and Type Method and Description
Long currentValue()

Get the currentValue property: Current value for this metric.

static UsageInner fromJson(JsonReader jsonReader)

Reads an instance of UsageInner from the JsonReader.

Long limit()

Get the limit property: Maximum value for this metric.

MetricName name()

Get the name property: The name information for the metric.

String quotaPeriod()

Get the quotaPeriod property: The quota period used to summarize the usage values.

JsonWriter toJson(JsonWriter jsonWriter)
UnitType unit()

Get the unit property: The unit of the metric.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

UsageInner

public UsageInner()

Creates an instance of UsageInner class.

Method Details

currentValue

public Long currentValue()

Get the currentValue property: Current value for this metric.

Returns:

the currentValue value.

fromJson

public static UsageInner fromJson(JsonReader jsonReader)

Reads an instance of UsageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UsageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the UsageInner.

limit

public Long limit()

Get the limit property: Maximum value for this metric.

Returns:

the limit value.

name

public MetricName name()

Get the name property: The name information for the metric.

Returns:

the name value.

quotaPeriod

public String quotaPeriod()

Get the quotaPeriod property: The quota period used to summarize the usage values.

Returns:

the quotaPeriod value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public UnitType unit()

Get the unit property: The unit of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to