java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.DistributedAvailabilityGroupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DistributedAvailabilityGroupInner
extends com.azure.core.management.ProxyResource
Distributed availability group between box and Sql Managed Instance.
-
Constructor Summary
Constructors
Creates an instance of DistributedAvailabilityGroupInner class.
-
Method Summary
Get the distributedAvailabilityGroupId property: The distributed availability group id.
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.
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 com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DistributedAvailabilityGroupInner
public DistributedAvailabilityGroupInner()
Creates an instance of DistributedAvailabilityGroupInner 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 DistributedAvailabilityGroupInner 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 DistributedAvailabilityGroupInner 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 DistributedAvailabilityGroupInner 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 DistributedAvailabilityGroupInner 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 DistributedAvailabilityGroupInner 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.