Partager via


UsageInner Class

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

Implements

public final class UsageInner
implements JsonSerializable<UsageInner>

ARM 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: Usage current value.

static UsageInner fromJson(JsonReader jsonReader)

Reads an instance of UsageInner from the JsonReader.

String id()

Get the id property: Resource ID.

Integer limit()

Get the limit property: Usage limit.

Name name()

Get the name property: Resource name.

Integer requestedLimit()

Get the requestedLimit property: Usage requested limit.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

String unit()

Get the unit property: Usage unit.

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: Usage current value.

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.

id

public String id()

Get the id property: Resource ID.

Returns:

the id value.

limit

public Integer limit()

Get the limit property: Usage limit.

Returns:

the limit value.

name

public Name name()

Get the name property: Resource name.

Returns:

the name value.

requestedLimit

public Integer requestedLimit()

Get the requestedLimit property: Usage requested limit.

Returns:

the requestedLimit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

unit

public String unit()

Get the unit property: Usage unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to