Interface ReplicationLink

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.arm.models.HasId, com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<ReplicationLinkInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasName, com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<ReplicationLink>

public interface ReplicationLink extends com.azure.resourcemanager.resources.fluentcore.model.Refreshable<ReplicationLink>, com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<ReplicationLinkInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup, com.azure.resourcemanager.resources.fluentcore.arm.models.HasName, com.azure.resourcemanager.resources.fluentcore.arm.models.HasId
An immutable client-side representation of an Azure SQL Replication link.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets name of the SQL Database to which this replication belongs.
    void
    Deletes the replication link.
    void
    Fails over the Azure SQL Database Replication Link.
    Fails over the Azure SQL Database Replication Link.
    void
    Forces fail over the Azure SQL Database Replication Link which may result in data loss.
    Forces fail over the Azure SQL Database Replication Link which may result in data loss.
    boolean
    Checks whether termination is allowed.
    Gets the name of the partner Azure SQL Database.
    Gets the Azure Region of the partner Azure SQL Database.
    Gets the role of the partner SQL Database in the replication link.
    Gets the name of the Azure SQL Server hosting the partner Azure SQL Database.
    int
    Gets the percentage of the seeding completed for the replication link.
    Gets the replication mode of this replication link.
    Gets the replication state for the replication link.
    Gets the role of the SQL Database in the replication link.
    Gets name of the SQL Server to which this replication belongs.
    Gets start time for the replication link.

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasId

    id

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel

    innerModel

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName

    name

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup

    resourceGroupName

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable

    refresh, refreshAsync
  • Method Details

    • sqlServerName

      String sqlServerName()
      Gets name of the SQL Server to which this replication belongs.
      Returns:
      name of the SQL Server to which this replication belongs
    • databaseName

      String databaseName()
      Gets name of the SQL Database to which this replication belongs.
      Returns:
      name of the SQL Database to which this replication belongs
    • partnerServer

      String partnerServer()
      Gets the name of the Azure SQL Server hosting the partner Azure SQL Database.
      Returns:
      the name of the Azure SQL Server hosting the partner Azure SQL Database.
    • partnerDatabase

      String partnerDatabase()
      Gets the name of the partner Azure SQL Database.
      Returns:
      the name of the partner Azure SQL Database
    • partnerLocation

      String partnerLocation()
      Gets the Azure Region of the partner Azure SQL Database.
      Returns:
      the Azure Region of the partner Azure SQL Database
    • role

      Gets the role of the SQL Database in the replication link.
      Returns:
      the role of the SQL Database in the replication link
    • partnerRole

      ReplicationRole partnerRole()
      Gets the role of the partner SQL Database in the replication link.
      Returns:
      the role of the partner SQL Database in the replication link
    • startTime

      OffsetDateTime startTime()
      Gets start time for the replication link.
      Returns:
      start time for the replication link (ISO8601 format)
    • percentComplete

      int percentComplete()
      Gets the percentage of the seeding completed for the replication link.
      Returns:
      the percentage of the seeding completed for the replication link
    • replicationState

      ReplicationState replicationState()
      Gets the replication state for the replication link.
      Returns:
      the replication state for the replication link
    • isTerminationAllowed

      boolean isTerminationAllowed()
      Checks whether termination is allowed.
      Returns:
      the legacy value indicating whether termination is allowed (currently always returns true)
    • replicationMode

      String replicationMode()
      Gets the replication mode of this replication link.
      Returns:
      the replication mode of this replication link
    • delete

      void delete()
      Deletes the replication link.
    • failover

      void failover()
      Fails over the Azure SQL Database Replication Link.
    • failoverAsync

      Mono<Void> failoverAsync()
      Fails over the Azure SQL Database Replication Link.
      Returns:
      a representation of the deferred computation of this call
    • forceFailoverAllowDataLoss

      void forceFailoverAllowDataLoss()
      Forces fail over the Azure SQL Database Replication Link which may result in data loss.
    • forceFailoverAllowDataLossAsync

      Mono<Void> forceFailoverAllowDataLossAsync()
      Forces fail over the Azure SQL Database Replication Link which may result in data loss.
      Returns:
      a representation of the deferred computation of this call