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