Class SyncMemberProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.SyncMemberProperties

public final class SyncMemberProperties extends Object
Properties of a sync member.
  • Constructor Details

    • SyncMemberProperties

      public SyncMemberProperties()
      Creates an instance of SyncMemberProperties class.
  • Method Details

    • databaseType

      public SyncMemberDbType databaseType()
      Get the databaseType property: Database type of the sync member.
      Returns:
      the databaseType value.
    • withDatabaseType

      public SyncMemberProperties withDatabaseType(SyncMemberDbType databaseType)
      Set the databaseType property: Database type of the sync member.
      Parameters:
      databaseType - the databaseType value to set.
      Returns:
      the SyncMemberProperties object itself.
    • syncAgentId

      public String syncAgentId()
      Get the syncAgentId property: ARM resource id of the sync agent in the sync member.
      Returns:
      the syncAgentId value.
    • withSyncAgentId

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • sqlServerDatabaseId

      public UUID sqlServerDatabaseId()
      Get the sqlServerDatabaseId property: SQL Server database id of the sync member.
      Returns:
      the sqlServerDatabaseId value.
    • withSqlServerDatabaseId

      public SyncMemberProperties withSqlServerDatabaseId(UUID sqlServerDatabaseId)
      Set the sqlServerDatabaseId property: SQL Server database id of the sync member.
      Parameters:
      sqlServerDatabaseId - the sqlServerDatabaseId value to set.
      Returns:
      the SyncMemberProperties object itself.
    • 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.
    • withSyncMemberAzureDatabaseResourceId

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • usePrivateLinkConnection

      public Boolean usePrivateLinkConnection()
      Get the usePrivateLinkConnection property: Whether to use private link connection.
      Returns:
      the usePrivateLinkConnection value.
    • withUsePrivateLinkConnection

      public SyncMemberProperties withUsePrivateLinkConnection(Boolean usePrivateLinkConnection)
      Set the usePrivateLinkConnection property: Whether to use private link connection.
      Parameters:
      usePrivateLinkConnection - the usePrivateLinkConnection value to set.
      Returns:
      the SyncMemberProperties object itself.
    • 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.
    • withServerName

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • databaseName

      public String databaseName()
      Get the databaseName property: Database name of the member database in the sync member.
      Returns:
      the databaseName value.
    • withDatabaseName

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • username

      public String username()
      Get the username property: User name of the member database in the sync member.
      Returns:
      the username value.
    • withUsername

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • password

      public String password()
      Get the password property: Password of the member database in the sync member.
      Returns:
      the password value.
    • withPassword

      public SyncMemberProperties 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 SyncMemberProperties object itself.
    • syncDirection

      public SyncDirection syncDirection()
      Get the syncDirection property: Sync direction of the sync member.
      Returns:
      the syncDirection value.
    • withSyncDirection

      public SyncMemberProperties withSyncDirection(SyncDirection syncDirection)
      Set the syncDirection property: Sync direction of the sync member.
      Parameters:
      syncDirection - the syncDirection value to set.
      Returns:
      the SyncMemberProperties object itself.
    • syncState

      public SyncMemberState 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.