DatabaseMigrationPropertiesSqlVm Class

public final class DatabaseMigrationPropertiesSqlVm
extends DatabaseMigrationProperties

Database Migration Resource properties for SQL Virtual Machine.

Constructor Summary

Constructor Description
DatabaseMigrationPropertiesSqlVm()

Creates an instance of DatabaseMigrationPropertiesSqlVm class.

Method Summary

Modifier and Type Method and Description
BackupConfiguration backupConfiguration()

Get the backupConfiguration property: Backup configuration info.

static DatabaseMigrationPropertiesSqlVm fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationPropertiesSqlVm from the JsonReader.

ResourceType kind()

Get the kind property: The kind property.

MigrationStatusDetails migrationStatusDetails()

Get the migrationStatusDetails property: Detailed migration status.

OfflineConfiguration offlineConfiguration()

Get the offlineConfiguration property: Offline configuration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseMigrationPropertiesSqlVm withBackupConfiguration(BackupConfiguration backupConfiguration)

Set the backupConfiguration property: Backup configuration info.

DatabaseMigrationPropertiesSqlVm withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

DatabaseMigrationPropertiesSqlVm withMigrationService(String migrationService)

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

DatabaseMigrationPropertiesSqlVm withOfflineConfiguration(OfflineConfiguration offlineConfiguration)

Set the offlineConfiguration property: Offline configuration.

DatabaseMigrationPropertiesSqlVm withProvisioningError(String provisioningError)

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

DatabaseMigrationPropertiesSqlVm withScope(String scope)

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

DatabaseMigrationPropertiesSqlVm withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

DatabaseMigrationPropertiesSqlVm withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

DatabaseMigrationPropertiesSqlVm withTargetDatabaseCollation(String targetDatabaseCollation)

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

Methods inherited from DatabaseMigrationBaseProperties

Methods inherited from DatabaseMigrationProperties

Methods inherited from java.lang.Object

Constructor Details

DatabaseMigrationPropertiesSqlVm

public DatabaseMigrationPropertiesSqlVm()

Creates an instance of DatabaseMigrationPropertiesSqlVm class.

Method Details

backupConfiguration

public BackupConfiguration backupConfiguration()

Get the backupConfiguration property: Backup configuration info.

Returns:

the backupConfiguration value.

fromJson

public static DatabaseMigrationPropertiesSqlVm fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationPropertiesSqlVm from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseMigrationPropertiesSqlVm 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 DatabaseMigrationPropertiesSqlVm.

kind

public ResourceType kind()

Get the kind property: The kind property.

Overrides:

DatabaseMigrationPropertiesSqlVm.kind()

Returns:

the kind value.

migrationStatusDetails

public MigrationStatusDetails migrationStatusDetails()

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

Returns:

the migrationStatusDetails value.

offlineConfiguration

public OfflineConfiguration offlineConfiguration()

Get the offlineConfiguration property: Offline configuration.

Returns:

the offlineConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatabaseMigrationPropertiesSqlVm.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DatabaseMigrationPropertiesSqlVm.validate()

withBackupConfiguration

public DatabaseMigrationPropertiesSqlVm withBackupConfiguration(BackupConfiguration backupConfiguration)

Set the backupConfiguration property: Backup configuration info.

Parameters:

backupConfiguration - the backupConfiguration value to set.

Returns:

the DatabaseMigrationPropertiesSqlVm object itself.

withMigrationOperationId

public DatabaseMigrationPropertiesSqlVm withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

Overrides:

DatabaseMigrationPropertiesSqlVm.withMigrationOperationId(String migrationOperationId)

Parameters:

migrationOperationId

withMigrationService

public DatabaseMigrationPropertiesSqlVm withMigrationService(String migrationService)

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

Overrides:

DatabaseMigrationPropertiesSqlVm.withMigrationService(String migrationService)

Parameters:

migrationService

withOfflineConfiguration

public DatabaseMigrationPropertiesSqlVm withOfflineConfiguration(OfflineConfiguration offlineConfiguration)

Set the offlineConfiguration property: Offline configuration.

Parameters:

offlineConfiguration - the offlineConfiguration value to set.

Returns:

the DatabaseMigrationPropertiesSqlVm object itself.

withProvisioningError

public DatabaseMigrationPropertiesSqlVm withProvisioningError(String provisioningError)

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

Overrides:

DatabaseMigrationPropertiesSqlVm.withProvisioningError(String provisioningError)

Parameters:

provisioningError

withScope

public DatabaseMigrationPropertiesSqlVm withScope(String scope)

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

Overrides:

DatabaseMigrationPropertiesSqlVm.withScope(String scope)

Parameters:

scope

withSourceDatabaseName

public DatabaseMigrationPropertiesSqlVm withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

Overrides:

DatabaseMigrationPropertiesSqlVm.withSourceDatabaseName(String sourceDatabaseName)

Parameters:

sourceDatabaseName

withSourceSqlConnection

public DatabaseMigrationPropertiesSqlVm withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

Overrides:

DatabaseMigrationPropertiesSqlVm.withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Parameters:

sourceSqlConnection

withTargetDatabaseCollation

public DatabaseMigrationPropertiesSqlVm withTargetDatabaseCollation(String targetDatabaseCollation)

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

Overrides:

DatabaseMigrationPropertiesSqlVm.withTargetDatabaseCollation(String targetDatabaseCollation)

Parameters:

targetDatabaseCollation

Applies to