Class InstanceFailoverGroupReadWriteEndpoint
java.lang.Object
com.microsoft.azure.management.sql.InstanceFailoverGroupReadWriteEndpoint
Read-write endpoint of the failover group instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet failover policy of the read-write endpoint for the failover group.Get grace period before failover with data loss is attempted for the read-write endpoint.withFailoverPolicy
(ReadWriteEndpointFailoverPolicy failoverPolicy) Set failover policy of the read-write endpoint for the failover group.withFailoverWithDataLossGracePeriodMinutes
(Integer failoverWithDataLossGracePeriodMinutes) Set grace period before failover with data loss is attempted for the read-write endpoint.
-
Constructor Details
-
InstanceFailoverGroupReadWriteEndpoint
public InstanceFailoverGroupReadWriteEndpoint()
-
-
Method Details
-
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 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.
-
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 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.
-