Del via


SubscriptionUsageProperties Class

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

Implements

public final class SubscriptionUsageProperties
implements JsonSerializable<SubscriptionUsageProperties>

Properties of a subscription usage.

Constructor Summary

Constructor Description
SubscriptionUsageProperties()

Creates an instance of SubscriptionUsageProperties class.

Method Summary

Modifier and Type Method and Description
Double currentValue()

Get the currentValue property: Current value of the metric.

String displayName()

Get the displayName property: User-readable name of the metric.

static SubscriptionUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionUsageProperties from the JsonReader.

Double limit()

Get the limit property: Boundary value of the metric.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Unit of the metric.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SubscriptionUsageProperties

public SubscriptionUsageProperties()

Creates an instance of SubscriptionUsageProperties class.

Method Details

currentValue

public Double currentValue()

Get the currentValue property: Current value of the metric.

Returns:

the currentValue value.

displayName

public String displayName()

Get the displayName property: User-readable name of the metric.

Returns:

the displayName value.

fromJson

public static SubscriptionUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionUsageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SubscriptionUsageProperties 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 SubscriptionUsageProperties.

limit

public Double limit()

Get the limit property: Boundary value of the metric.

Returns:

the limit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Unit of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to