FailoverGroupReadWriteEndpoint Class

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

public class FailoverGroupReadWriteEndpoint

Read-write endpoint of the failover group instance.

Method Summary

Modifier and Type Method and Description
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'.

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.

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'.

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.

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

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

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.

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.

Applies to