ServerCommunicationLinkProperties Class

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

Implements

public final class ServerCommunicationLinkProperties
implements JsonSerializable<ServerCommunicationLinkProperties>

The properties of a server communication link.

Constructor Summary

Constructor Description
ServerCommunicationLinkProperties()

Creates an instance of ServerCommunicationLinkProperties class.

Method Summary

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

Reads an instance of ServerCommunicationLinkProperties from the JsonReader.

String partnerServer()

Get the partnerServer property: The name of the partner server.

String state()

Get the state property: The state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerCommunicationLinkProperties withPartnerServer(String partnerServer)

Set the partnerServer property: The name of the partner server.

Methods inherited from java.lang.Object

Constructor Details

ServerCommunicationLinkProperties

public ServerCommunicationLinkProperties()

Creates an instance of ServerCommunicationLinkProperties class.

Method Details

fromJson

public static ServerCommunicationLinkProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerCommunicationLinkProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

partnerServer

public String partnerServer()

Get the partnerServer property: The name of the partner server.

Returns:

the partnerServer value.

state

public String state()

Get the state property: The state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPartnerServer

public ServerCommunicationLinkProperties withPartnerServer(String partnerServer)

Set the partnerServer property: The name of the partner server.

Parameters:

partnerServer - the partnerServer value to set.

Returns:

the ServerCommunicationLinkProperties object itself.

Applies to