Del via


ServerUsageProperties Class

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

Implements

public final class ServerUsageProperties
implements JsonSerializable<ServerUsageProperties>

Properties of a server usage.

Constructor Summary

Constructor Description
ServerUsageProperties()

Creates an instance of ServerUsageProperties 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 ServerUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageProperties 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

ServerUsageProperties

public ServerUsageProperties()

Creates an instance of ServerUsageProperties 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 ServerUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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