Dela via


UsageInner Class

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

Implements

public final class UsageInner
implements JsonSerializable<UsageInner>

Describes Storage Resource Usage.

Constructor Summary

Constructor Description
UsageInner()

Creates an instance of UsageInner class.

Method Summary

Modifier and Type Method and Description
Integer currentValue()

Get the currentValue property: Gets the current count of the allocated resources in the subscription.

static UsageInner fromJson(JsonReader jsonReader)

Reads an instance of UsageInner from the JsonReader.

Integer limit()

Get the limit property: Gets the maximum count of the resources that can be allocated in the subscription.

UsageName name()

Get the name property: Gets the name of the type of usage.

JsonWriter toJson(JsonWriter jsonWriter)
UsageUnit unit()

Get the unit property: Gets the unit of measurement.

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 Integer currentValue()

Get the currentValue property: Gets the current count of the allocated resources in the subscription.

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 Integer limit()

Get the limit property: Gets the maximum count of the resources that can be allocated in the subscription.

Returns:

the limit value.

name

public UsageName name()

Get the name property: Gets the name of the type of usage.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public UsageUnit unit()

Get the unit property: Gets the unit of measurement.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to