DatabaseMigrationPropertiesSqlDb Class

public final class DatabaseMigrationPropertiesSqlDb
extends DatabaseMigrationProperties

Database Migration Resource properties for SQL database.

Constructor Summary

Constructor Description
DatabaseMigrationPropertiesSqlDb()

Creates an instance of DatabaseMigrationPropertiesSqlDb class.

Method Summary

Modifier and Type Method and Description
static DatabaseMigrationPropertiesSqlDb fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationPropertiesSqlDb from the JsonReader.

ResourceType kind()

Get the kind property: The kind property.

SqlDbMigrationStatusDetails migrationStatusDetails()

Get the migrationStatusDetails property: Detailed migration status.

SqlDbOfflineConfiguration offlineConfiguration()

Get the offlineConfiguration property: Offline configuration.

List<String> tableList()

Get the tableList property: List of tables to copy.

SqlConnectionInformation targetSqlConnection()

Get the targetSqlConnection property: Target SQL DB connection details.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseMigrationPropertiesSqlDb withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

DatabaseMigrationPropertiesSqlDb withMigrationService(String migrationService)

Set the migrationService property: Resource Id of the Migration Service.

DatabaseMigrationPropertiesSqlDb withProvisioningError(String provisioningError)

Set the provisioningError property: Error message for migration provisioning failure, if any.

DatabaseMigrationPropertiesSqlDb withScope(String scope)

Set the scope property: Resource Id of the target resource.

DatabaseMigrationPropertiesSqlDb withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

DatabaseMigrationPropertiesSqlDb withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

DatabaseMigrationPropertiesSqlDb withTableList(List<String> tableList)

Set the tableList property: List of tables to copy.

DatabaseMigrationPropertiesSqlDb withTargetDatabaseCollation(String targetDatabaseCollation)

Set the targetDatabaseCollation property: Database collation to be used for the target database.

DatabaseMigrationPropertiesSqlDb withTargetSqlConnection(SqlConnectionInformation targetSqlConnection)

Set the targetSqlConnection property: Target SQL DB connection details.

Methods inherited from DatabaseMigrationBaseProperties

Methods inherited from DatabaseMigrationProperties

Methods inherited from java.lang.Object

Constructor Details

DatabaseMigrationPropertiesSqlDb

public DatabaseMigrationPropertiesSqlDb()

Creates an instance of DatabaseMigrationPropertiesSqlDb class.

Method Details

fromJson

public static DatabaseMigrationPropertiesSqlDb fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationPropertiesSqlDb from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseMigrationPropertiesSqlDb if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DatabaseMigrationPropertiesSqlDb.

kind

public ResourceType kind()

Get the kind property: The kind property.

Overrides:

DatabaseMigrationPropertiesSqlDb.kind()

Returns:

the kind value.

migrationStatusDetails

public SqlDbMigrationStatusDetails migrationStatusDetails()

Get the migrationStatusDetails property: Detailed migration status. Not included by default.

Returns:

the migrationStatusDetails value.

offlineConfiguration

public SqlDbOfflineConfiguration offlineConfiguration()

Get the offlineConfiguration property: Offline configuration.

Returns:

the offlineConfiguration value.

tableList

public List<String> tableList()

Get the tableList property: List of tables to copy.

Returns:

the tableList value.

targetSqlConnection

public SqlConnectionInformation targetSqlConnection()

Get the targetSqlConnection property: Target SQL DB connection details.

Returns:

the targetSqlConnection value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatabaseMigrationPropertiesSqlDb.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DatabaseMigrationPropertiesSqlDb.validate()

withMigrationOperationId

public DatabaseMigrationPropertiesSqlDb withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

Overrides:

DatabaseMigrationPropertiesSqlDb.withMigrationOperationId(String migrationOperationId)

Parameters:

migrationOperationId

withMigrationService

public DatabaseMigrationPropertiesSqlDb withMigrationService(String migrationService)

Set the migrationService property: Resource Id of the Migration Service.

Overrides:

DatabaseMigrationPropertiesSqlDb.withMigrationService(String migrationService)

Parameters:

migrationService

withProvisioningError

public DatabaseMigrationPropertiesSqlDb withProvisioningError(String provisioningError)

Set the provisioningError property: Error message for migration provisioning failure, if any.

Overrides:

DatabaseMigrationPropertiesSqlDb.withProvisioningError(String provisioningError)

Parameters:

provisioningError

withScope

public DatabaseMigrationPropertiesSqlDb withScope(String scope)

Set the scope property: Resource Id of the target resource.

Overrides:

DatabaseMigrationPropertiesSqlDb.withScope(String scope)

Parameters:

scope

withSourceDatabaseName

public DatabaseMigrationPropertiesSqlDb withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

Overrides:

DatabaseMigrationPropertiesSqlDb.withSourceDatabaseName(String sourceDatabaseName)

Parameters:

sourceDatabaseName

withSourceSqlConnection

public DatabaseMigrationPropertiesSqlDb withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

Overrides:

DatabaseMigrationPropertiesSqlDb.withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Parameters:

sourceSqlConnection

withTableList

public DatabaseMigrationPropertiesSqlDb withTableList(List<String> tableList)

Set the tableList property: List of tables to copy.

Parameters:

tableList - the tableList value to set.

Returns:

the DatabaseMigrationPropertiesSqlDb object itself.

withTargetDatabaseCollation

public DatabaseMigrationPropertiesSqlDb withTargetDatabaseCollation(String targetDatabaseCollation)

Set the targetDatabaseCollation property: Database collation to be used for the target database.

Overrides:

DatabaseMigrationPropertiesSqlDb.withTargetDatabaseCollation(String targetDatabaseCollation)

Parameters:

targetDatabaseCollation

withTargetSqlConnection

public DatabaseMigrationPropertiesSqlDb withTargetSqlConnection(SqlConnectionInformation targetSqlConnection)

Set the targetSqlConnection property: Target SQL DB connection details.

Parameters:

targetSqlConnection - the targetSqlConnection value to set.

Returns:

the DatabaseMigrationPropertiesSqlDb object itself.

Applies to