FailoverGroupReadWriteEndpoint Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. FailoverGroupReadWriteEndpoint
- com.
Implements
public final class FailoverGroupReadWriteEndpoint
implements JsonSerializable<FailoverGroupReadWriteEndpoint>
Read-write endpoint of the failover group instance.
Constructor Summary
Constructor | Description |
---|---|
FailoverGroupReadWriteEndpoint() |
Creates an instance of Failover |
Method Summary
Modifier and Type | Method and Description |
---|---|
Read |
failoverPolicy()
Get the failover |
Integer |
failoverWithDataLossGracePeriodMinutes()
Get the failover |
static
Failover |
fromJson(JsonReader jsonReader)
Reads an instance of Failover |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Failover |
withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy)
Set the failover |
Failover |
withFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes)
Set the failover |
Methods inherited from java.lang.Object
Constructor Details
FailoverGroupReadWriteEndpoint
public FailoverGroupReadWriteEndpoint()
Creates an instance of FailoverGroupReadWriteEndpoint class.
Method Details
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:
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:
fromJson
public static FailoverGroupReadWriteEndpoint fromJson(JsonReader jsonReader)
Reads an instance of FailoverGroupReadWriteEndpoint from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java