SyncMemberInner Class

public final class SyncMemberInner
extends ProxyResource

An Azure SQL Database sync member.

Constructor Summary

Constructor Description
SyncMemberInner()

Creates an instance of SyncMemberInner class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: Database name of the member database in the sync member.

SyncMemberDbType databaseType()

Get the databaseType property: Database type of the sync member.

static SyncMemberInner fromJson(JsonReader jsonReader)

Reads an instance of SyncMemberInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String password()

Get the password property: Password of the member database in the sync member.

String privateEndpointName()

Get the privateEndpointName property: Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure.

String serverName()

Get the serverName property: Server name of the member database in the sync member.

UUID sqlServerDatabaseId()

Get the sqlServerDatabaseId property: SQL Server database id of the sync member.

String syncAgentId()

Get the syncAgentId property: ARM resource id of the sync agent in the sync member.

SyncDirection syncDirection()

Get the syncDirection property: Sync direction of the sync member.

String syncMemberAzureDatabaseResourceId()

Get the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.

SyncMemberState syncState()

Get the syncState property: Sync state of the sync member.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Boolean usePrivateLinkConnection()

Get the usePrivateLinkConnection property: Whether to use private link connection.

String username()

Get the username property: User name of the member database in the sync member.

void validate()

Validates the instance.

SyncMemberInner withDatabaseName(String databaseName)

Set the databaseName property: Database name of the member database in the sync member.

SyncMemberInner withDatabaseType(SyncMemberDbType databaseType)

Set the databaseType property: Database type of the sync member.

SyncMemberInner withPassword(String password)

Set the password property: Password of the member database in the sync member.

SyncMemberInner withServerName(String serverName)

Set the serverName property: Server name of the member database in the sync member.

SyncMemberInner withSqlServerDatabaseId(UUID sqlServerDatabaseId)

Set the sqlServerDatabaseId property: SQL Server database id of the sync member.

SyncMemberInner withSyncAgentId(String syncAgentId)

Set the syncAgentId property: ARM resource id of the sync agent in the sync member.

SyncMemberInner withSyncDirection(SyncDirection syncDirection)

Set the syncDirection property: Sync direction of the sync member.

SyncMemberInner withSyncMemberAzureDatabaseResourceId(String syncMemberAzureDatabaseResourceId)

Set the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.

SyncMemberInner withUsePrivateLinkConnection(Boolean usePrivateLinkConnection)

Set the usePrivateLinkConnection property: Whether to use private link connection.

SyncMemberInner withUsername(String username)

Set the username property: User name of the member database in the sync member.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SyncMemberInner

public SyncMemberInner()

Creates an instance of SyncMemberInner class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: Database name of the member database in the sync member.

Returns:

the databaseName value.

databaseType

public SyncMemberDbType databaseType()

Get the databaseType property: Database type of the sync member.

Returns:

the databaseType value.

fromJson

public static SyncMemberInner fromJson(JsonReader jsonReader)

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:

IOException

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SyncMemberInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SyncMemberInner.name()

Returns:

the name value.

password

public String password()

Get the password property: Password of the member database in the sync member.

Returns:

the password value.

privateEndpointName

public String 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

public String serverName()

Get the serverName property: Server name of the member database in the sync member.

Returns:

the serverName value.

sqlServerDatabaseId

public UUID sqlServerDatabaseId()

Get the sqlServerDatabaseId property: SQL Server database id of the sync member.

Returns:

the sqlServerDatabaseId value.

syncAgentId

public String syncAgentId()

Get the syncAgentId property: ARM resource id of the sync agent in the sync member.

Returns:

the syncAgentId value.

syncDirection

public SyncDirection syncDirection()

Get the syncDirection property: Sync direction of the sync member.

Returns:

the syncDirection value.

syncMemberAzureDatabaseResourceId

public String syncMemberAzureDatabaseResourceId()

Get the syncMemberAzureDatabaseResourceId property: ARM resource id of the sync member logical database, for sync members in Azure.

Returns:

the syncMemberAzureDatabaseResourceId value.

syncState

public SyncMemberState syncState()

Get the syncState property: Sync state of the sync member.

Returns:

the syncState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SyncMemberInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SyncMemberInner.type()

Returns:

the type value.

usePrivateLinkConnection

public Boolean usePrivateLinkConnection()

Get the usePrivateLinkConnection property: Whether to use private link connection.

Returns:

the usePrivateLinkConnection value.

username

public String username()

Get the username property: User name of the member database in the sync member.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withDatabaseName

public SyncMemberInner withDatabaseName(String databaseName)

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.

withDatabaseType

public SyncMemberInner withDatabaseType(SyncMemberDbType databaseType)

Set the databaseType property: Database type of the sync member.

Parameters:

databaseType - the databaseType value to set.

Returns:

the SyncMemberInner object itself.

withPassword

public SyncMemberInner withPassword(String password)

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.

withServerName

public SyncMemberInner withServerName(String serverName)

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.

withSqlServerDatabaseId

public SyncMemberInner withSqlServerDatabaseId(UUID sqlServerDatabaseId)

Set the sqlServerDatabaseId property: SQL Server database id of the sync member.

Parameters:

sqlServerDatabaseId - the sqlServerDatabaseId value to set.

Returns:

the SyncMemberInner object itself.

withSyncAgentId

public SyncMemberInner withSyncAgentId(String syncAgentId)

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.

withSyncDirection

public SyncMemberInner withSyncDirection(SyncDirection syncDirection)

Set the syncDirection property: Sync direction of the sync member.

Parameters:

syncDirection - the syncDirection value to set.

Returns:

the SyncMemberInner object itself.

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.

withUsePrivateLinkConnection

public SyncMemberInner withUsePrivateLinkConnection(Boolean usePrivateLinkConnection)

Set the usePrivateLinkConnection property: Whether to use private link connection.

Parameters:

usePrivateLinkConnection - the usePrivateLinkConnection value to set.

Returns:

the SyncMemberInner object itself.

withUsername

public SyncMemberInner withUsername(String username)

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.

Applies to