ServerUsageListResult Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.ServerUsageListResult

Implements

public final class ServerUsageListResult
implements JsonSerializable<ServerUsageListResult>

Represents the response to a list server metrics request.

Constructor Summary

Constructor Description
ServerUsageListResult()

Creates an instance of ServerUsageListResult class.

Method Summary

Modifier and Type Method and Description
static ServerUsageListResult fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageListResult from the JsonReader.

String nextLink()

Get the nextLink property: Link to retrieve next page of results.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<ServerUsageInner> value()

Get the value property: The list of server metrics for the server.

ServerUsageListResult withValue(List<ServerUsageInner> value)

Set the value property: The list of server metrics for the server.

Methods inherited from java.lang.Object

Constructor Details

ServerUsageListResult

public ServerUsageListResult()

Creates an instance of ServerUsageListResult class.

Method Details

fromJson

public static ServerUsageListResult fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageListResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerUsageListResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

nextLink

public String nextLink()

Get the nextLink property: Link to retrieve next page of results.

Returns:

the nextLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<ServerUsageInner> value()

Get the value property: The list of server metrics for the server.

Returns:

the value value.

withValue

public ServerUsageListResult withValue(List<ServerUsageInner> value)

Set the value property: The list of server metrics for the server.

Parameters:

value - the value value to set.

Returns:

the ServerUsageListResult object itself.

Applies to