次の方法で共有


DatabaseMigrationProperties Class

public class DatabaseMigrationProperties
extends DatabaseMigrationBaseProperties

Database Migration Resource properties.

Constructor Summary

Constructor Description
DatabaseMigrationProperties()

Creates an instance of DatabaseMigrationProperties class.

Method Summary

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

Reads an instance of DatabaseMigrationProperties from the JsonReader.

ResourceType kind()

Get the kind property: The kind property.

String sourceDatabaseName()

Get the sourceDatabaseName property: Name of the source database.

String sourceServerName()

Get the sourceServerName property: Name of the source sql server.

SqlConnectionInformation sourceSqlConnection()

Get the sourceSqlConnection property: Source SQL Server connection details.

String targetDatabaseCollation()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseMigrationProperties withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

DatabaseMigrationProperties withMigrationService(String migrationService)

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

DatabaseMigrationProperties withProvisioningError(String provisioningError)

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

DatabaseMigrationProperties withScope(String scope)

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

DatabaseMigrationProperties withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

DatabaseMigrationProperties withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

DatabaseMigrationProperties withTargetDatabaseCollation(String targetDatabaseCollation)

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

Methods inherited from DatabaseMigrationBaseProperties

Methods inherited from java.lang.Object

Constructor Details

DatabaseMigrationProperties

public DatabaseMigrationProperties()

Creates an instance of DatabaseMigrationProperties class.

Method Details

fromJson

public static DatabaseMigrationProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

kind

public ResourceType kind()

Get the kind property: The kind property.

Overrides:

DatabaseMigrationProperties.kind()

Returns:

the kind value.

sourceDatabaseName

public String sourceDatabaseName()

Get the sourceDatabaseName property: Name of the source database.

Returns:

the sourceDatabaseName value.

sourceServerName

public String sourceServerName()

Get the sourceServerName property: Name of the source sql server.

Returns:

the sourceServerName value.

sourceSqlConnection

public SqlConnectionInformation sourceSqlConnection()

Get the sourceSqlConnection property: Source SQL Server connection details.

Returns:

the sourceSqlConnection value.

targetDatabaseCollation

public String targetDatabaseCollation()

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

Returns:

the targetDatabaseCollation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DatabaseMigrationProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DatabaseMigrationProperties.validate()

withMigrationOperationId

public DatabaseMigrationProperties withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

Overrides:

DatabaseMigrationProperties.withMigrationOperationId(String migrationOperationId)

Parameters:

migrationOperationId

withMigrationService

public DatabaseMigrationProperties withMigrationService(String migrationService)

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

Overrides:

DatabaseMigrationProperties.withMigrationService(String migrationService)

Parameters:

migrationService

withProvisioningError

public DatabaseMigrationProperties withProvisioningError(String provisioningError)

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

Overrides:

DatabaseMigrationProperties.withProvisioningError(String provisioningError)

Parameters:

provisioningError

withScope

public DatabaseMigrationProperties withScope(String scope)

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

Overrides:

DatabaseMigrationProperties.withScope(String scope)

Parameters:

scope

withSourceDatabaseName

public DatabaseMigrationProperties withSourceDatabaseName(String sourceDatabaseName)

Set the sourceDatabaseName property: Name of the source database.

Parameters:

sourceDatabaseName - the sourceDatabaseName value to set.

Returns:

the DatabaseMigrationProperties object itself.

withSourceSqlConnection

public DatabaseMigrationProperties withSourceSqlConnection(SqlConnectionInformation sourceSqlConnection)

Set the sourceSqlConnection property: Source SQL Server connection details.

Parameters:

sourceSqlConnection - the sourceSqlConnection value to set.

Returns:

the DatabaseMigrationProperties object itself.

withTargetDatabaseCollation

public DatabaseMigrationProperties withTargetDatabaseCollation(String targetDatabaseCollation)

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

Parameters:

targetDatabaseCollation - the targetDatabaseCollation value to set.

Returns:

the DatabaseMigrationProperties object itself.

Applies to