DistributedAvailabilityGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. DistributedAvailabilityGroupInner
- com.
- com.
public final class DistributedAvailabilityGroupInner
extends ProxyResource
Distributed availability group between box and Sql Managed Instance.
Constructor Summary
Constructor | Description |
---|---|
DistributedAvailabilityGroupInner() |
Creates an instance of Distributed |
Method Summary
Modifier and Type | Method and Description |
---|---|
UUID |
distributedAvailabilityGroupId()
Get the distributed |
static
Distributed |
fromJson(JsonReader jsonReader)
Reads an instance of Distributed |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
lastHardenedLsn()
Get the last |
String |
linkState()
Get the link |
String |
name()
Get the name property: The name of the resource. |
String |
primaryAvailabilityGroupName()
Get the primary |
Replication |
replicationMode()
Get the replication |
String |
secondaryAvailabilityGroupName()
Get the secondary |
String |
sourceEndpoint()
Get the source |
UUID |
sourceReplicaId()
Get the source |
String |
targetDatabase()
Get the target |
UUID |
targetReplicaId()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Distributed |
withPrimaryAvailabilityGroupName(String primaryAvailabilityGroupName)
Set the primary |
Distributed |
withReplicationMode(ReplicationMode replicationMode)
Set the replication |
Distributed |
withSecondaryAvailabilityGroupName(String secondaryAvailabilityGroupName)
Set the secondary |
Distributed |
withSourceEndpoint(String sourceEndpoint)
Set the source |
Distributed |
withTargetDatabase(String targetDatabase)
Set the target |
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:
fromJson
public static DistributedAvailabilityGroupInner fromJson(JsonReader jsonReader)
Reads an instance of DistributedAvailabilityGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DistributedAvailabilityGroupInner.id()Returns:
lastHardenedLsn
public String lastHardenedLsn()
Get the lastHardenedLsn property: The last hardened lsn.
Returns:
linkState
public String linkState()
Get the linkState property: The link state.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DistributedAvailabilityGroupInner.name()Returns:
primaryAvailabilityGroupName
public String primaryAvailabilityGroupName()
Get the primaryAvailabilityGroupName property: The primary availability group name.
Returns:
replicationMode
public ReplicationMode replicationMode()
Get the replicationMode property: The replication mode of a distributed availability group. Parameter will be ignored during link creation.
Returns:
secondaryAvailabilityGroupName
public String secondaryAvailabilityGroupName()
Get the secondaryAvailabilityGroupName property: The secondary availability group name.
Returns:
sourceEndpoint
public String sourceEndpoint()
Get the sourceEndpoint property: The source endpoint.
Returns:
sourceReplicaId
public UUID sourceReplicaId()
Get the sourceReplicaId property: The source replica id.
Returns:
targetDatabase
public String targetDatabase()
Get the targetDatabase property: The name of the target database.
Returns:
targetReplicaId
public UUID targetReplicaId()
Get the targetReplicaId property: The target replica id.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DistributedAvailabilityGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DistributedAvailabilityGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withPrimaryAvailabilityGroupName
public DistributedAvailabilityGroupInner withPrimaryAvailabilityGroupName(String primaryAvailabilityGroupName)
Set the primaryAvailabilityGroupName property: The primary availability group name.
Parameters:
Returns:
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:
Returns:
withSecondaryAvailabilityGroupName
public DistributedAvailabilityGroupInner withSecondaryAvailabilityGroupName(String secondaryAvailabilityGroupName)
Set the secondaryAvailabilityGroupName property: The secondary availability group name.
Parameters:
Returns:
withSourceEndpoint
public DistributedAvailabilityGroupInner withSourceEndpoint(String sourceEndpoint)
Set the sourceEndpoint property: The source endpoint.
Parameters:
Returns:
withTargetDatabase
public DistributedAvailabilityGroupInner withTargetDatabase(String targetDatabase)
Set the targetDatabase property: The name of the target database.
Parameters:
Returns:
Applies to
Azure SDK for Java