ResourceUsageInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.ResourceUsageInner

Implements

public final class ResourceUsageInner
implements JsonSerializable<ResourceUsageInner>

Output of check resource usage API.

Method Summary

Modifier and Type Method and Description
Integer currentValue()

Get the currentValue property: Actual value of usage on the specified resource type.

static ResourceUsageInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceUsageInner from the JsonReader.

Integer limit()

Get the limit property: Quota of the specified resource type.

String resourceType()

Get the resourceType property: Resource type for which the usage is provided.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceUsageUnit unit()

Get the unit property: Unit of the usage.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

currentValue

public Integer currentValue()

Get the currentValue property: Actual value of usage on the specified resource type.

Returns:

the currentValue value.

fromJson

public static ResourceUsageInner fromJson(JsonReader jsonReader)

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.

limit

public Integer limit()

Get the limit property: Quota of the specified resource type.

Returns:

the limit value.

resourceType

public String resourceType()

Get the resourceType property: Resource type for which the usage is provided.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public ResourceUsageUnit unit()

Get the unit property: Unit of the usage. e.g. count.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to