public final class FailoverPolicy extends Object
| Constructor and Description |
|---|
FailoverPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
failoverPriority()
Get the failoverPriority property: The failover priority of the region.
|
String |
id()
Get the id property: The unique identifier of the region in which the database account replicates to.
|
String |
locationName()
Get the locationName property: The name of the region in which the database account exists.
|
void |
validate()
Validates the instance.
|
FailoverPolicy |
withFailoverPriority(Integer failoverPriority)
Set the failoverPriority property: The failover priority of the region.
|
FailoverPolicy |
withLocationName(String locationName)
Set the locationName property: The name of the region in which the database account exists.
|
public String id()
public String locationName()
public FailoverPolicy withLocationName(String locationName)
locationName - the locationName value to set.public Integer failoverPriority()
public FailoverPolicy withFailoverPriority(Integer failoverPriority)
failoverPriority - the failoverPriority value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.