Class AgReplica
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.AgReplica
Availability group replica configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommit()
Get the commit property: Replica commit mode in availability group.failover()
Get the failover property: Replica failover mode in availability group.Get the readableSecondary property: Replica readable secondary mode in availability group.role()
Get the role property: Replica Role in availability group.Get the sqlVirtualMachineInstanceId property: Sql VirtualMachine Instance Id.void
validate()
Validates the instance.withCommit
(Commit commit) Set the commit property: Replica commit mode in availability group.withFailover
(Failover failover) Set the failover property: Replica failover mode in availability group.withReadableSecondary
(ReadableSecondary readableSecondary) Set the readableSecondary property: Replica readable secondary mode in availability group.Set the role property: Replica Role in availability group.withSqlVirtualMachineInstanceId
(String sqlVirtualMachineInstanceId) Set the sqlVirtualMachineInstanceId property: Sql VirtualMachine Instance Id.
-
Constructor Details
-
AgReplica
public AgReplica()
-
-
Method Details
-
sqlVirtualMachineInstanceId
Get the sqlVirtualMachineInstanceId property: Sql VirtualMachine Instance Id.- Returns:
- the sqlVirtualMachineInstanceId value.
-
withSqlVirtualMachineInstanceId
Set the sqlVirtualMachineInstanceId property: Sql VirtualMachine Instance Id.- Parameters:
sqlVirtualMachineInstanceId
- the sqlVirtualMachineInstanceId value to set.- Returns:
- the AgReplica object itself.
-
role
Get the role property: Replica Role in availability group.- Returns:
- the role value.
-
withRole
Set the role property: Replica Role in availability group.- Parameters:
role
- the role value to set.- Returns:
- the AgReplica object itself.
-
commit
Get the commit property: Replica commit mode in availability group.- Returns:
- the commit value.
-
withCommit
Set the commit property: Replica commit mode in availability group.- Parameters:
commit
- the commit value to set.- Returns:
- the AgReplica object itself.
-
failover
Get the failover property: Replica failover mode in availability group.- Returns:
- the failover value.
-
withFailover
Set the failover property: Replica failover mode in availability group.- Parameters:
failover
- the failover value to set.- Returns:
- the AgReplica object itself.
-
readableSecondary
Get the readableSecondary property: Replica readable secondary mode in availability group.- Returns:
- the readableSecondary value.
-
withReadableSecondary
Set the readableSecondary property: Replica readable secondary mode in availability group.- Parameters:
readableSecondary
- the readableSecondary value to set.- Returns:
- the AgReplica object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-