DistributedAvailabilityGroupsFailoverRequest Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. DistributedAvailabilityGroupsFailoverRequest
- com.
Implements
public final class DistributedAvailabilityGroupsFailoverRequest
implements JsonSerializable<DistributedAvailabilityGroupsFailoverRequest>
Distributed availability group failover.
Constructor Summary
| Constructor | Description |
|---|---|
| DistributedAvailabilityGroupsFailoverRequest() |
Creates an instance of Distributed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Failover |
failoverType()
Get the failover |
|
static
Distributed |
fromJson(JsonReader jsonReader)
Reads an instance of Distributed |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Distributed |
withFailoverType(FailoverType failoverType)
Set the failover |
Methods inherited from java.lang.Object
Constructor Details
DistributedAvailabilityGroupsFailoverRequest
public DistributedAvailabilityGroupsFailoverRequest()
Creates an instance of DistributedAvailabilityGroupsFailoverRequest class.
Method Details
failoverType
public FailoverType failoverType()
Get the failoverType property: The failover type, can be ForcedAllowDataLoss or Planned.
Returns:
fromJson
public static DistributedAvailabilityGroupsFailoverRequest fromJson(JsonReader jsonReader)
Reads an instance of DistributedAvailabilityGroupsFailoverRequest from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withFailoverType
public DistributedAvailabilityGroupsFailoverRequest withFailoverType(FailoverType failoverType)
Set the failoverType property: The failover type, can be ForcedAllowDataLoss or Planned.
Parameters:
Returns: