InstanceFailoverGroupReadWriteEndpoint Class

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

public class InstanceFailoverGroupReadWriteEndpoint

Read-write endpoint of the failover group instance.

Constructor Summary

Constructor Description
InstanceFailoverGroupReadWriteEndpoint()

Method Summary

Modifier and Type Method and Description
ReadWriteEndpointFailoverPolicy failoverPolicy()

Get failover policy of the read-write endpoint for the failover group.

java.lang.Integer failoverWithDataLossGracePeriodMinutes()

Get grace period before failover with data loss is attempted for the read-write endpoint.

InstanceFailoverGroupReadWriteEndpoint withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy)

Set failover policy of the read-write endpoint for the failover group.

InstanceFailoverGroupReadWriteEndpoint withFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes)

Set grace period before failover with data loss is attempted for the read-write endpoint.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

InstanceFailoverGroupReadWriteEndpoint

public InstanceFailoverGroupReadWriteEndpoint()

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 InstanceFailoverGroupReadWriteEndpoint 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 InstanceFailoverGroupReadWriteEndpoint object itself.

withFailoverWithDataLossGracePeriodMinutes

public InstanceFailoverGroupReadWriteEndpoint 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 InstanceFailoverGroupReadWriteEndpoint object itself.

Applies to