DistributedAvailabilityGroupsFailoverRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.DistributedAvailabilityGroupsFailoverRequest

Implements

public final class DistributedAvailabilityGroupsFailoverRequest
implements JsonSerializable<DistributedAvailabilityGroupsFailoverRequest>

Distributed availability group failover.

Constructor Summary

Constructor Description
DistributedAvailabilityGroupsFailoverRequest()

Creates an instance of DistributedAvailabilityGroupsFailoverRequest class.

Method Summary

Modifier and Type Method and Description
FailoverType failoverType()

Get the failoverType property: The failover type, can be ForcedAllowDataLoss or Planned.

static DistributedAvailabilityGroupsFailoverRequest fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupsFailoverRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DistributedAvailabilityGroupsFailoverRequest withFailoverType(FailoverType failoverType)

Set the failoverType property: The failover type, can be ForcedAllowDataLoss or Planned.

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:

the failoverType value.

fromJson

public static DistributedAvailabilityGroupsFailoverRequest fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupsFailoverRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DistributedAvailabilityGroupsFailoverRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

failoverType - the failoverType value to set.

Returns:

the DistributedAvailabilityGroupsFailoverRequest object itself.

Applies to