Class UsageInner
java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.UsageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UsageInner>
- Direct Known Subclasses:
PartitionUsageInner
The usage data for a usage request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Current value for this metric.static UsageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UsageInner from the JsonReader.limit()Get the limit property: Maximum value for this metric.name()Get the name property: The name information for the metric.Get the quotaPeriod property: The quota period used to summarize the usage values.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UsageInner
public UsageInner()Creates an instance of UsageInner class.
-
-
Method Details
-
unit
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
name
Get the name property: The name information for the metric.- Returns:
- the name value.
-
quotaPeriod
Get the quotaPeriod property: The quota period used to summarize the usage values.- Returns:
- the quotaPeriod value.
-
limit
Get the limit property: Maximum value for this metric.- Returns:
- the limit value.
-
currentValue
Get the currentValue property: Current value for this metric.- Returns:
- the currentValue value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UsageInner>- Throws:
IOException
-
fromJson
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.
-