Class SyncMemberInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.SyncMemberInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class SyncMemberInner
extends com.azure.core.management.ProxyResource
An Azure SQL Database sync member.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: Database name of the member database in the sync member.Get the databaseType property: Database type of the sync member.static SyncMemberInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SyncMemberInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.password()Get the password property: Password of the member database in the sync member.Get the privateEndpointName property: Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure.Get the serverName property: Server name of the member database in the sync member.Get the sqlServerDatabaseId property: SQL Server database id of the sync member.Get the syncAgentId property: ARM resource id of the sync agent in the sync member.Get the syncDirection property: Sync direction of the sync member.Get the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.Get the syncState property: Sync state of the sync member.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the usePrivateLinkConnection property: Whether to use private link connection.username()Get the username property: User name of the member database in the sync member.voidvalidate()Validates the instance.withDatabaseName(String databaseName) Set the databaseName property: Database name of the member database in the sync member.withDatabaseType(SyncMemberDbType databaseType) Set the databaseType property: Database type of the sync member.withPassword(String password) Set the password property: Password of the member database in the sync member.withServerName(String serverName) Set the serverName property: Server name of the member database in the sync member.withSqlServerDatabaseId(UUID sqlServerDatabaseId) Set the sqlServerDatabaseId property: SQL Server database id of the sync member.withSyncAgentId(String syncAgentId) Set the syncAgentId property: ARM resource id of the sync agent in the sync member.withSyncDirection(SyncDirection syncDirection) Set the syncDirection property: Sync direction of the sync member.withSyncMemberAzureDatabaseResourceId(String syncMemberAzureDatabaseResourceId) Set the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.withUsePrivateLinkConnection(Boolean usePrivateLinkConnection) Set the usePrivateLinkConnection property: Whether to use private link connection.withUsername(String username) Set the username property: User name of the member database in the sync member.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SyncMemberInner
public SyncMemberInner()Creates an instance of SyncMemberInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
databaseType
Get the databaseType property: Database type of the sync member.- Returns:
- the databaseType value.
-
withDatabaseType
Set the databaseType property: Database type of the sync member.- Parameters:
databaseType- the databaseType value to set.- Returns:
- the SyncMemberInner object itself.
-
syncAgentId
Get the syncAgentId property: ARM resource id of the sync agent in the sync member.- Returns:
- the syncAgentId value.
-
withSyncAgentId
Set the syncAgentId property: ARM resource id of the sync agent in the sync member.- Parameters:
syncAgentId- the syncAgentId value to set.- Returns:
- the SyncMemberInner object itself.
-
sqlServerDatabaseId
Get the sqlServerDatabaseId property: SQL Server database id of the sync member.- Returns:
- the sqlServerDatabaseId value.
-
withSqlServerDatabaseId
Set the sqlServerDatabaseId property: SQL Server database id of the sync member.- Parameters:
sqlServerDatabaseId- the sqlServerDatabaseId value to set.- Returns:
- the SyncMemberInner object itself.
-
syncMemberAzureDatabaseResourceId
Get the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.- Returns:
- the syncMemberAzureDatabaseResourceId value.
-
withSyncMemberAzureDatabaseResourceId
public SyncMemberInner withSyncMemberAzureDatabaseResourceId(String syncMemberAzureDatabaseResourceId) Set the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.- Parameters:
syncMemberAzureDatabaseResourceId- the syncMemberAzureDatabaseResourceId value to set.- Returns:
- the SyncMemberInner object itself.
-
usePrivateLinkConnection
Get the usePrivateLinkConnection property: Whether to use private link connection.- Returns:
- the usePrivateLinkConnection value.
-
withUsePrivateLinkConnection
Set the usePrivateLinkConnection property: Whether to use private link connection.- Parameters:
usePrivateLinkConnection- the usePrivateLinkConnection value to set.- Returns:
- the SyncMemberInner object itself.
-
privateEndpointName
Get the privateEndpointName property: Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure.- Returns:
- the privateEndpointName value.
-
serverName
Get the serverName property: Server name of the member database in the sync member.- Returns:
- the serverName value.
-
withServerName
Set the serverName property: Server name of the member database in the sync member.- Parameters:
serverName- the serverName value to set.- Returns:
- the SyncMemberInner object itself.
-
databaseName
Get the databaseName property: Database name of the member database in the sync member.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Database name of the member database in the sync member.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the SyncMemberInner object itself.
-
username
Get the username property: User name of the member database in the sync member.- Returns:
- the username value.
-
withUsername
Set the username property: User name of the member database in the sync member.- Parameters:
username- the username value to set.- Returns:
- the SyncMemberInner object itself.
-
password
Get the password property: Password of the member database in the sync member.- Returns:
- the password value.
-
withPassword
Set the password property: Password of the member database in the sync member.- Parameters:
password- the password value to set.- Returns:
- the SyncMemberInner object itself.
-
syncDirection
Get the syncDirection property: Sync direction of the sync member.- Returns:
- the syncDirection value.
-
withSyncDirection
Set the syncDirection property: Sync direction of the sync member.- Parameters:
syncDirection- the syncDirection value to set.- Returns:
- the SyncMemberInner object itself.
-
syncState
Get the syncState property: Sync state of the sync member.- Returns:
- the syncState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of SyncMemberInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SyncMemberInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SyncMemberInner.
-