ReplicationLinkUpdate Class

public final class ReplicationLinkUpdate
extends ProxyResource

A replication link update request.

Constructor Summary

Constructor Description
ReplicationLinkUpdate()

Creates an instance of ReplicationLinkUpdate class.

Method Summary

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

Reads an instance of ReplicationLinkUpdate from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ReplicationLinkType linkType()

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

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ReplicationLinkUpdate withLinkType(ReplicationLinkType linkType)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ReplicationLinkUpdate

public ReplicationLinkUpdate()

Creates an instance of ReplicationLinkUpdate class.

Method Details

fromJson

public static ReplicationLinkUpdate fromJson(JsonReader jsonReader)

Reads an instance of ReplicationLinkUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ReplicationLinkUpdate.id()

Returns:

the id value.

linkType

public ReplicationLinkType linkType()

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

Returns:

the linkType value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ReplicationLinkUpdate.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ReplicationLinkUpdate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ReplicationLinkUpdate.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLinkType

public ReplicationLinkUpdate 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 ReplicationLinkUpdate object itself.

Applies to