ServerInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ServerInfo

Implements

public final class ServerInfo
implements JsonSerializable<ServerInfo>

Server info for the server trust group.

Constructor Summary

Constructor Description
ServerInfo()

Creates an instance of ServerInfo class.

Method Summary

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

Reads an instance of ServerInfo from the JsonReader.

String serverId()

Get the serverId property: Server Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerInfo withServerId(String serverId)

Set the serverId property: Server Id.

Methods inherited from java.lang.Object

Constructor Details

ServerInfo

public ServerInfo()

Creates an instance of ServerInfo class.

Method Details

fromJson

public static ServerInfo fromJson(JsonReader jsonReader)

Reads an instance of ServerInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serverId

public String serverId()

Get the serverId property: Server Id.

Returns:

the serverId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withServerId

public ServerInfo withServerId(String serverId)

Set the serverId property: Server Id.

Parameters:

serverId - the serverId value to set.

Returns:

the ServerInfo object itself.

Applies to