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