FailoverGroupReadWriteEndpoint Class
- java.
lang. Object - com.
microsoft. azure. management. sql. FailoverGroupReadWriteEndpoint
- com.
public class FailoverGroupReadWriteEndpoint
Read-write endpoint of the failover group instance.
Method Summary
Modifier and Type | Method and Description |
---|---|
Read |
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'. |
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. |
Failover |
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'. |
Failover |
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. |
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:
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:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java