ReplicationLinkUpdateProperties Class

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

Implements

public final class ReplicationLinkUpdateProperties
implements JsonSerializable<ReplicationLinkUpdateProperties>

Properties of a replication link update.

Constructor Summary

Constructor Description
ReplicationLinkUpdateProperties()

Creates an instance of ReplicationLinkUpdateProperties class.

Method Summary

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

Reads an instance of ReplicationLinkUpdateProperties from the JsonReader.

ReplicationLinkType linkType()

Get the linkType property: Link type (GEO, NAMED, STANDBY).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReplicationLinkUpdateProperties withLinkType(ReplicationLinkType linkType)

Set the linkType property: Link type (GEO, NAMED, STANDBY).

Methods inherited from java.lang.Object

Constructor Details

ReplicationLinkUpdateProperties

public ReplicationLinkUpdateProperties()

Creates an instance of ReplicationLinkUpdateProperties class.

Method Details

fromJson

public static ReplicationLinkUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ReplicationLinkUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

linkType

public ReplicationLinkType linkType()

Get the linkType property: Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.

Returns:

the linkType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLinkType

public ReplicationLinkUpdateProperties withLinkType(ReplicationLinkType linkType)

Set the linkType property: Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.

Parameters:

linkType - the linkType value to set.

Returns:

the ReplicationLinkUpdateProperties object itself.

Applies to