FailoverGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. FailoverGroupInner
- com.
- com.
public final class FailoverGroupInner
extends ProxyResource
A failover group.
Constructor Summary
Constructor | Description |
---|---|
FailoverGroupInner() |
Creates an instance of Failover |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
databases()
Get the databases property: List of databases in the failover group. |
static
Failover |
fromJson(JsonReader jsonReader)
Reads an instance of Failover |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: The name of the resource. |
List<Partner |
partnerServers()
Get the partner |
Failover |
readOnlyEndpoint()
Get the read |
Failover |
readWriteEndpoint()
Get the read |
Failover |
replicationRole()
Get the replication |
String |
replicationState()
Get the replication |
Map<String,String> |
tags()
Get the tags property: Resource tags. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Failover |
withDatabases(List<String> databases)
Set the databases property: List of databases in the failover group. |
Failover |
withPartnerServers(List<PartnerInfo> partnerServers)
Set the partner |
Failover |
withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)
Set the read |
Failover |
withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)
Set the read |
Failover |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
FailoverGroupInner
public FailoverGroupInner()
Creates an instance of FailoverGroupInner class.
Method Details
databases
public List
Get the databases property: List of databases in the failover group.
Returns:
fromJson
public static FailoverGroupInner fromJson(JsonReader jsonReader)
Reads an instance of FailoverGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
FailoverGroupInner.id()Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
FailoverGroupInner.name()Returns:
partnerServers
public List
Get the partnerServers property: List of partner server information for the failover group.
Returns:
readOnlyEndpoint
public FailoverGroupReadOnlyEndpoint readOnlyEndpoint()
Get the readOnlyEndpoint property: Read-only endpoint of the failover group instance.
Returns:
readWriteEndpoint
public FailoverGroupReadWriteEndpoint readWriteEndpoint()
Get the readWriteEndpoint property: Read-write endpoint of the failover group instance.
Returns:
replicationRole
public FailoverGroupReplicationRole replicationRole()
Get the replicationRole property: Local replication role of the failover group instance.
Returns:
replicationState
public String replicationState()
Get the replicationState property: Replication state of the failover group instance.
Returns:
tags
public Map
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FailoverGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
FailoverGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withDatabases
public FailoverGroupInner withDatabases(List
Set the databases property: List of databases in the failover group.
Parameters:
Returns:
withPartnerServers
public FailoverGroupInner withPartnerServers(List
Set the partnerServers property: List of partner server information for the failover group.
Parameters:
Returns:
withReadOnlyEndpoint
public FailoverGroupInner withReadOnlyEndpoint(FailoverGroupReadOnlyEndpoint readOnlyEndpoint)
Set the readOnlyEndpoint property: Read-only endpoint of the failover group instance.
Parameters:
Returns:
withReadWriteEndpoint
public FailoverGroupInner withReadWriteEndpoint(FailoverGroupReadWriteEndpoint readWriteEndpoint)
Set the readWriteEndpoint property: Read-write endpoint of the failover group instance.
Parameters:
Returns:
withTags
public FailoverGroupInner withTags(Map
Set the tags property: Resource tags.
Parameters:
Returns:
Applies to
Azure SDK for Java