DistributedAvailabilityGroupInner Class

public final class DistributedAvailabilityGroupInner
extends ProxyResource

Distributed availability group between box and Sql Managed Instance.

Constructor Summary

Constructor Description
DistributedAvailabilityGroupInner()

Creates an instance of DistributedAvailabilityGroupInner class.

Method Summary

Modifier and Type Method and Description
UUID distributedAvailabilityGroupId()

Get the distributedAvailabilityGroupId property: The distributed availability group id.

static DistributedAvailabilityGroupInner fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupInner from the JsonReader.

String id()

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

String lastHardenedLsn()

Get the lastHardenedLsn property: The last hardened lsn.

String linkState()

Get the linkState property: The link state.

String name()

Get the name property: The name of the resource.

String primaryAvailabilityGroupName()

Get the primaryAvailabilityGroupName property: The primary availability group name.

ReplicationMode replicationMode()

Get the replicationMode property: The replication mode of a distributed availability group.

String secondaryAvailabilityGroupName()

Get the secondaryAvailabilityGroupName property: The secondary availability group name.

String sourceEndpoint()

Get the sourceEndpoint property: The source endpoint.

UUID sourceReplicaId()

Get the sourceReplicaId property: The source replica id.

String targetDatabase()

Get the targetDatabase property: The name of the target database.

UUID targetReplicaId()

Get the targetReplicaId property: The target replica id.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DistributedAvailabilityGroupInner withPrimaryAvailabilityGroupName(String primaryAvailabilityGroupName)

Set the primaryAvailabilityGroupName property: The primary availability group name.

DistributedAvailabilityGroupInner withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: The replication mode of a distributed availability group.

DistributedAvailabilityGroupInner withSecondaryAvailabilityGroupName(String secondaryAvailabilityGroupName)

Set the secondaryAvailabilityGroupName property: The secondary availability group name.

DistributedAvailabilityGroupInner withSourceEndpoint(String sourceEndpoint)

Set the sourceEndpoint property: The source endpoint.

DistributedAvailabilityGroupInner withTargetDatabase(String targetDatabase)

Set the targetDatabase property: The name of the target database.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DistributedAvailabilityGroupInner

public DistributedAvailabilityGroupInner()

Creates an instance of DistributedAvailabilityGroupInner class.

Method Details

distributedAvailabilityGroupId

public UUID distributedAvailabilityGroupId()

Get the distributedAvailabilityGroupId property: The distributed availability group id.

Returns:

the distributedAvailabilityGroupId value.

fromJson

public static DistributedAvailabilityGroupInner fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DistributedAvailabilityGroupInner 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:

DistributedAvailabilityGroupInner.id()

Returns:

the id value.

lastHardenedLsn

public String lastHardenedLsn()

Get the lastHardenedLsn property: The last hardened lsn.

Returns:

the lastHardenedLsn value.

linkState

public String linkState()

Get the linkState property: The link state.

Returns:

the linkState value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DistributedAvailabilityGroupInner.name()

Returns:

the name value.

primaryAvailabilityGroupName

public String primaryAvailabilityGroupName()

Get the primaryAvailabilityGroupName property: The primary availability group name.

Returns:

the primaryAvailabilityGroupName value.

replicationMode

public ReplicationMode replicationMode()

Get the replicationMode property: The replication mode of a distributed availability group. Parameter will be ignored during link creation.

Returns:

the replicationMode value.

secondaryAvailabilityGroupName

public String secondaryAvailabilityGroupName()

Get the secondaryAvailabilityGroupName property: The secondary availability group name.

Returns:

the secondaryAvailabilityGroupName value.

sourceEndpoint

public String sourceEndpoint()

Get the sourceEndpoint property: The source endpoint.

Returns:

the sourceEndpoint value.

sourceReplicaId

public UUID sourceReplicaId()

Get the sourceReplicaId property: The source replica id.

Returns:

the sourceReplicaId value.

targetDatabase

public String targetDatabase()

Get the targetDatabase property: The name of the target database.

Returns:

the targetDatabase value.

targetReplicaId

public UUID targetReplicaId()

Get the targetReplicaId property: The target replica id.

Returns:

the targetReplicaId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DistributedAvailabilityGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DistributedAvailabilityGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPrimaryAvailabilityGroupName

public DistributedAvailabilityGroupInner withPrimaryAvailabilityGroupName(String primaryAvailabilityGroupName)

Set the primaryAvailabilityGroupName property: The primary availability group name.

Parameters:

primaryAvailabilityGroupName - the primaryAvailabilityGroupName value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withReplicationMode

public DistributedAvailabilityGroupInner withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: The replication mode of a distributed availability group. Parameter will be ignored during link creation.

Parameters:

replicationMode - the replicationMode value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withSecondaryAvailabilityGroupName

public DistributedAvailabilityGroupInner withSecondaryAvailabilityGroupName(String secondaryAvailabilityGroupName)

Set the secondaryAvailabilityGroupName property: The secondary availability group name.

Parameters:

secondaryAvailabilityGroupName - the secondaryAvailabilityGroupName value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withSourceEndpoint

public DistributedAvailabilityGroupInner withSourceEndpoint(String sourceEndpoint)

Set the sourceEndpoint property: The source endpoint.

Parameters:

sourceEndpoint - the sourceEndpoint value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withTargetDatabase

public DistributedAvailabilityGroupInner withTargetDatabase(String targetDatabase)

Set the targetDatabase property: The name of the target database.

Parameters:

targetDatabase - the targetDatabase value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

Applies to