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
List<DistributedAvailabilityGroupDatabase> databases()

Get the databases property: Databases in the distributed availability group.

UUID distributedAvailabilityGroupId()

Get the distributedAvailabilityGroupId property: ID of the distributed availability group.

String distributedAvailabilityGroupName()

Get the distributedAvailabilityGroupName property: Name of the distributed availability group.

FailoverModeType failoverMode()

Get the failoverMode property: The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.

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 instanceAvailabilityGroupName()

Get the instanceAvailabilityGroupName property: Managed instance side availability group name.

LinkRole instanceLinkRole()

Get the instanceLinkRole property: Managed instance side link role.

String name()

Get the name property: The name of the resource.

String partnerAvailabilityGroupName()

Get the partnerAvailabilityGroupName property: SQL server side availability group name.

String partnerEndpoint()

Get the partnerEndpoint property: SQL server side endpoint - IP or DNS resolvable name.

LinkRole partnerLinkRole()

Get the partnerLinkRole property: SQL server side link role.

ReplicationModeType replicationMode()

Get the replicationMode property: Replication mode of the link.

SeedingModeType seedingMode()

Get the seedingMode property: Database seeding mode – can be Automatic (default), or Manual for supported scenarios.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DistributedAvailabilityGroupInner withDatabases(List<DistributedAvailabilityGroupDatabase> databases)

Set the databases property: Databases in the distributed availability group.

DistributedAvailabilityGroupInner withFailoverMode(FailoverModeType failoverMode)

Set the failoverMode property: The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.

DistributedAvailabilityGroupInner withInstanceAvailabilityGroupName(String instanceAvailabilityGroupName)

Set the instanceAvailabilityGroupName property: Managed instance side availability group name.

DistributedAvailabilityGroupInner withInstanceLinkRole(LinkRole instanceLinkRole)

Set the instanceLinkRole property: Managed instance side link role.

DistributedAvailabilityGroupInner withPartnerAvailabilityGroupName(String partnerAvailabilityGroupName)

Set the partnerAvailabilityGroupName property: SQL server side availability group name.

DistributedAvailabilityGroupInner withPartnerEndpoint(String partnerEndpoint)

Set the partnerEndpoint property: SQL server side endpoint - IP or DNS resolvable name.

DistributedAvailabilityGroupInner withReplicationMode(ReplicationModeType replicationMode)

Set the replicationMode property: Replication mode of the link.

DistributedAvailabilityGroupInner withSeedingMode(SeedingModeType seedingMode)

Set the seedingMode property: Database seeding mode – can be Automatic (default), or Manual for supported scenarios.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DistributedAvailabilityGroupInner

public DistributedAvailabilityGroupInner()

Creates an instance of DistributedAvailabilityGroupInner class.

Method Details

databases

public List<DistributedAvailabilityGroupDatabase> databases()

Get the databases property: Databases in the distributed availability group.

Returns:

the databases value.

distributedAvailabilityGroupId

public UUID distributedAvailabilityGroupId()

Get the distributedAvailabilityGroupId property: ID of the distributed availability group.

Returns:

the distributedAvailabilityGroupId value.

distributedAvailabilityGroupName

public String distributedAvailabilityGroupName()

Get the distributedAvailabilityGroupName property: Name of the distributed availability group.

Returns:

the distributedAvailabilityGroupName value.

failoverMode

public FailoverModeType failoverMode()

Get the failoverMode property: The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.

Returns:

the failoverMode 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.

instanceAvailabilityGroupName

public String instanceAvailabilityGroupName()

Get the instanceAvailabilityGroupName property: Managed instance side availability group name.

Returns:

the instanceAvailabilityGroupName value.

instanceLinkRole

public LinkRole instanceLinkRole()

Get the instanceLinkRole property: Managed instance side link role.

Returns:

the instanceLinkRole value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DistributedAvailabilityGroupInner.name()

Returns:

the name value.

partnerAvailabilityGroupName

public String partnerAvailabilityGroupName()

Get the partnerAvailabilityGroupName property: SQL server side availability group name.

Returns:

the partnerAvailabilityGroupName value.

partnerEndpoint

public String partnerEndpoint()

Get the partnerEndpoint property: SQL server side endpoint - IP or DNS resolvable name.

Returns:

the partnerEndpoint value.

partnerLinkRole

public LinkRole partnerLinkRole()

Get the partnerLinkRole property: SQL server side link role.

Returns:

the partnerLinkRole value.

replicationMode

public ReplicationModeType replicationMode()

Get the replicationMode property: Replication mode of the link.

Returns:

the replicationMode value.

seedingMode

public SeedingModeType seedingMode()

Get the seedingMode property: Database seeding mode – can be Automatic (default), or Manual for supported scenarios.

Returns:

the seedingMode 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.

withDatabases

public DistributedAvailabilityGroupInner withDatabases(List<DistributedAvailabilityGroupDatabase> databases)

Set the databases property: Databases in the distributed availability group.

Parameters:

databases - the databases value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withFailoverMode

public DistributedAvailabilityGroupInner withFailoverMode(FailoverModeType failoverMode)

Set the failoverMode property: The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.

Parameters:

failoverMode - the failoverMode value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withInstanceAvailabilityGroupName

public DistributedAvailabilityGroupInner withInstanceAvailabilityGroupName(String instanceAvailabilityGroupName)

Set the instanceAvailabilityGroupName property: Managed instance side availability group name.

Parameters:

instanceAvailabilityGroupName - the instanceAvailabilityGroupName value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withInstanceLinkRole

public DistributedAvailabilityGroupInner withInstanceLinkRole(LinkRole instanceLinkRole)

Set the instanceLinkRole property: Managed instance side link role.

Parameters:

instanceLinkRole - the instanceLinkRole value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withPartnerAvailabilityGroupName

public DistributedAvailabilityGroupInner withPartnerAvailabilityGroupName(String partnerAvailabilityGroupName)

Set the partnerAvailabilityGroupName property: SQL server side availability group name.

Parameters:

partnerAvailabilityGroupName - the partnerAvailabilityGroupName value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withPartnerEndpoint

public DistributedAvailabilityGroupInner withPartnerEndpoint(String partnerEndpoint)

Set the partnerEndpoint property: SQL server side endpoint - IP or DNS resolvable name.

Parameters:

partnerEndpoint - the partnerEndpoint value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withReplicationMode

public DistributedAvailabilityGroupInner withReplicationMode(ReplicationModeType replicationMode)

Set the replicationMode property: Replication mode of the link.

Parameters:

replicationMode - the replicationMode value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

withSeedingMode

public DistributedAvailabilityGroupInner withSeedingMode(SeedingModeType seedingMode)

Set the seedingMode property: Database seeding mode – can be Automatic (default), or Manual for supported scenarios.

Parameters:

seedingMode - the seedingMode value to set.

Returns:

the DistributedAvailabilityGroupInner object itself.

Applies to