Class FailoverGroupReadWriteEndpoint
java.lang.Object
com.azure.resourcemanager.sql.models.FailoverGroupReadWriteEndpoint
Read-write endpoint of the failover group instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FailoverGroupReadWriteEndpoint class. -
Method Summary
Modifier and TypeMethodDescriptionGet the failoverPolicy property: Failover policy of the read-write endpoint for the failover group.Get the failoverWithDataLossGracePeriodMinutes property: Grace period before failover with data loss is attempted for the read-write endpoint.voidvalidate()Validates the instance.withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy) Set the failoverPolicy property: Failover policy of the read-write endpoint for the failover group.withFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes) Set the failoverWithDataLossGracePeriodMinutes property: Grace period before failover with data loss is attempted for the read-write endpoint.
-
Constructor Details
-
FailoverGroupReadWriteEndpoint
public FailoverGroupReadWriteEndpoint()Creates an instance of FailoverGroupReadWriteEndpoint class.
-
-
Method Details
-
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
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.
-