Class FailoverGroupReadWriteEndpoint

java.lang.Object
com.microsoft.azure.management.sql.FailoverGroupReadWriteEndpoint

public class FailoverGroupReadWriteEndpoint extends Object
Read-write endpoint of the failover group instance.
  • Constructor Details

    • FailoverGroupReadWriteEndpoint

      public FailoverGroupReadWriteEndpoint()
  • Method Details

    • failoverPolicy

      public ReadWriteEndpointFailoverPolicy failoverPolicy()
      Get failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: 'Manual', 'Automatic'.
      Returns:
      the failoverPolicy value
    • withFailoverPolicy

      public FailoverGroupReadWriteEndpoint withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy)
      Set failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: 'Manual', 'Automatic'.
      Parameters:
      failoverPolicy - the failoverPolicy value to set
      Returns:
      the FailoverGroupReadWriteEndpoint object itself.
    • failoverWithDataLossGracePeriodMinutes

      public Integer failoverWithDataLossGracePeriodMinutes()
      Get grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
      Returns:
      the failoverWithDataLossGracePeriodMinutes value
    • withFailoverWithDataLossGracePeriodMinutes

      public FailoverGroupReadWriteEndpoint withFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes)
      Set grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
      Parameters:
      failoverWithDataLossGracePeriodMinutes - the failoverWithDataLossGracePeriodMinutes value to set
      Returns:
      the FailoverGroupReadWriteEndpoint object itself.