Class ResourceUsageInner
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.ResourceUsageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUsageInner>
public final class ResourceUsageInner
extends Object
implements com.azure.json.JsonSerializable<ResourceUsageInner>
Output of check resource usage API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Actual value of usage on the specified resource type.static ResourceUsageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceUsageInner from the JsonReader.limit()Get the limit property: Quota of the specified resource type.Get the resourceType property: Resource type for which the usage is provided.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Unit of the usage. e.g. count.voidvalidate()Validates the instance.Methods inherited from class 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
-
ResourceUsageInner
public ResourceUsageInner()Creates an instance of ResourceUsageInner class.
-
-
Method Details
-
resourceType
Get the resourceType property: Resource type for which the usage is provided.- Returns:
- the resourceType value.
-
unit
Get the unit property: Unit of the usage. e.g. count.- Returns:
- the unit value.
-
currentValue
Get the currentValue property: Actual value of usage on the specified resource type.- Returns:
- the currentValue value.
-
limit
Get the limit property: Quota of the specified resource type.- Returns:
- the limit 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<ResourceUsageInner>- Throws:
IOException
-
fromJson
Reads an instance of ResourceUsageInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceUsageInner 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 ResourceUsageInner.
-