java.lang.Object
com.azure.resourcemanager.sql.fluent.models.DistributedAvailabilityGroupProperties
-
Constructor Summary
Constructors
Creates an instance of DistributedAvailabilityGroupProperties class.
-
Method Summary
Get the distributedAvailabilityGroupId property: The distributed availability group id.
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of DistributedAvailabilityGroupProperties from the JsonReader.
Get the lastHardenedLsn property: The last hardened lsn.
Get the linkState property: The link state.
Get the primaryAvailabilityGroupName property: The primary availability group name.
Get the replicationMode property: The replication mode of a distributed availability group.
Get the secondaryAvailabilityGroupName property: The secondary availability group name.
Get the sourceEndpoint property: The source endpoint.
Get the sourceReplicaId property: The source replica id.
Get the targetDatabase property: The name of the target database.
Get the targetReplicaId property: The target replica id.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Set the primaryAvailabilityGroupName property: The primary availability group name.
Set the replicationMode property: The replication mode of a distributed availability group.
Set the secondaryAvailabilityGroupName property: The secondary availability group name.
Set the sourceEndpoint property: The source endpoint.
Set the targetDatabase property: The name of the target database.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DistributedAvailabilityGroupProperties
public DistributedAvailabilityGroupProperties()
Creates an instance of DistributedAvailabilityGroupProperties class.
-
Method Details
-
targetDatabase
public String targetDatabase()
Get the targetDatabase property: The name of the target database.
- Returns:
- the targetDatabase value.
-
withTargetDatabase
Set the targetDatabase property: The name of the target database.
- Parameters:
targetDatabase - the targetDatabase value to set.
- Returns:
- the DistributedAvailabilityGroupProperties object itself.
-
sourceEndpoint
public String sourceEndpoint()
Get the sourceEndpoint property: The source endpoint.
- Returns:
- the sourceEndpoint value.
-
withSourceEndpoint
Set the sourceEndpoint property: The source endpoint.
- Parameters:
sourceEndpoint - the sourceEndpoint value to set.
- Returns:
- the DistributedAvailabilityGroupProperties object itself.
-
primaryAvailabilityGroupName
public String primaryAvailabilityGroupName()
Get the primaryAvailabilityGroupName property: The primary availability group name.
- Returns:
- the primaryAvailabilityGroupName value.
-
withPrimaryAvailabilityGroupName
Set the primaryAvailabilityGroupName property: The primary availability group name.
- Parameters:
primaryAvailabilityGroupName - the primaryAvailabilityGroupName value to set.
- Returns:
- the DistributedAvailabilityGroupProperties object itself.
-
secondaryAvailabilityGroupName
public String secondaryAvailabilityGroupName()
Get the secondaryAvailabilityGroupName property: The secondary availability group name.
- Returns:
- the secondaryAvailabilityGroupName value.
-
withSecondaryAvailabilityGroupName
Set the secondaryAvailabilityGroupName property: The secondary availability group name.
- Parameters:
secondaryAvailabilityGroupName - the secondaryAvailabilityGroupName value to set.
- Returns:
- the DistributedAvailabilityGroupProperties object itself.
-
replicationMode
Get the replicationMode property: The replication mode of a distributed availability group. Parameter will be
ignored during link creation.
- Returns:
- the replicationMode value.
-
withReplicationMode
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 DistributedAvailabilityGroupProperties object itself.
-
distributedAvailabilityGroupId
public UUID distributedAvailabilityGroupId()
Get the distributedAvailabilityGroupId property: The distributed availability group id.
- Returns:
- the distributedAvailabilityGroupId value.
-
sourceReplicaId
public UUID sourceReplicaId()
Get the sourceReplicaId property: The source replica id.
- Returns:
- the sourceReplicaId value.
-
targetReplicaId
public UUID targetReplicaId()
Get the targetReplicaId property: The target replica id.
- Returns:
- the targetReplicaId value.
-
linkState
Get the linkState property: The link state.
- Returns:
- the linkState value.
-
lastHardenedLsn
public String lastHardenedLsn()
Get the lastHardenedLsn property: The last hardened lsn.
- Returns:
- the lastHardenedLsn value.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
-
fromJson
Reads an instance of DistributedAvailabilityGroupProperties from the JsonReader.
- Parameters:
jsonReader - The JsonReader being read.
- Returns:
- An instance of DistributedAvailabilityGroupProperties 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 DistributedAvailabilityGroupProperties.