Class FailoverGroupReadWriteEndpoint
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.FailoverGroupReadWriteEndpoint
-
public final class FailoverGroupReadWriteEndpoint extends Object
Read-write endpoint of the failover group instance.
-
-
Constructor Summary
Constructors Constructor Description FailoverGroupReadWriteEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadWriteEndpointFailoverPolicyfailoverPolicy()Get the failoverPolicy property: Failover policy of the read-write endpoint for the failover group.IntegerfailoverWithDataLossGracePeriodMinutes()Get the failoverWithDataLossGracePeriodMinutes property: Grace period before failover with data loss is attempted for the read-write endpoint.voidvalidate()Validates the instance.FailoverGroupReadWriteEndpointwithFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy)Set the failoverPolicy property: Failover policy of the read-write endpoint for the failover group.FailoverGroupReadWriteEndpointwithFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes)Set the failoverWithDataLossGracePeriodMinutes property: Grace period before failover with data loss is attempted for the read-write endpoint.
-
-
-
Method Detail
-
failoverPolicy
public ReadWriteEndpointFailoverPolicy failoverPolicy()
Get the failoverPolicy property: Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.- Returns:
- the failoverPolicy value.
-
withFailoverPolicy
public FailoverGroupReadWriteEndpoint withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy)
Set the failoverPolicy property: Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.- Parameters:
failoverPolicy- the failoverPolicy value to set.- Returns:
- the FailoverGroupReadWriteEndpoint object itself.
-
failoverWithDataLossGracePeriodMinutes
public Integer failoverWithDataLossGracePeriodMinutes()
Get the failoverWithDataLossGracePeriodMinutes property: 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 the failoverWithDataLossGracePeriodMinutes property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-