ValidateMigrationInputSqlServerSqlMITaskInput Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput

Implements

public final class ValidateMigrationInputSqlServerSqlMITaskInput
implements JsonSerializable<ValidateMigrationInputSqlServerSqlMITaskInput>

Input for task that validates migration input for SQL to Azure SQL Managed Instance.

Constructor Summary

Constructor Description
ValidateMigrationInputSqlServerSqlMITaskInput()

Creates an instance of ValidateMigrationInputSqlServerSqlMITaskInput class.

Method Summary

Modifier and Type Method and Description
BlobShare backupBlobShare()

Get the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.

FileShare backupFileShare()

Get the backupFileShare property: Backup file share information for all selected databases.

BackupMode backupMode()

Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.

static ValidateMigrationInputSqlServerSqlMITaskInput fromJson(JsonReader jsonReader)

Reads an instance of ValidateMigrationInputSqlServerSqlMITaskInput from the JsonReader.

List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases()

Get the selectedDatabases property: Databases to migrate.

List<String> selectedLogins()

Get the selectedLogins property: Logins to migrate.

SqlConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source.

SqlConnectionInfo targetConnectionInfo()

Get the targetConnectionInfo property: Information for connecting to target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidateMigrationInputSqlServerSqlMITaskInput withBackupBlobShare(BlobShare backupBlobShare)

Set the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.

ValidateMigrationInputSqlServerSqlMITaskInput withBackupFileShare(FileShare backupFileShare)

Set the backupFileShare property: Backup file share information for all selected databases.

ValidateMigrationInputSqlServerSqlMITaskInput withBackupMode(BackupMode backupMode)

Set the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.

ValidateMigrationInputSqlServerSqlMITaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases)

Set the selectedDatabases property: Databases to migrate.

ValidateMigrationInputSqlServerSqlMITaskInput withSelectedLogins(List<String> selectedLogins)

Set the selectedLogins property: Logins to migrate.

ValidateMigrationInputSqlServerSqlMITaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

ValidateMigrationInputSqlServerSqlMITaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Methods inherited from java.lang.Object

Constructor Details

ValidateMigrationInputSqlServerSqlMITaskInput

public ValidateMigrationInputSqlServerSqlMITaskInput()

Creates an instance of ValidateMigrationInputSqlServerSqlMITaskInput class.

Method Details

backupBlobShare

public BlobShare backupBlobShare()

Get the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.

Returns:

the backupBlobShare value.

backupFileShare

public FileShare backupFileShare()

Get the backupFileShare property: Backup file share information for all selected databases.

Returns:

the backupFileShare value.

backupMode

public BackupMode backupMode()

Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.

Returns:

the backupMode value.

fromJson

public static ValidateMigrationInputSqlServerSqlMITaskInput fromJson(JsonReader jsonReader)

Reads an instance of ValidateMigrationInputSqlServerSqlMITaskInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

selectedDatabases

public List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases()

Get the selectedDatabases property: Databases to migrate.

Returns:

the selectedDatabases value.

selectedLogins

public List<String> selectedLogins()

Get the selectedLogins property: Logins to migrate.

Returns:

the selectedLogins value.

sourceConnectionInfo

public SqlConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source.

Returns:

the sourceConnectionInfo value.

targetConnectionInfo

public SqlConnectionInfo targetConnectionInfo()

Get the targetConnectionInfo property: Information for connecting to target.

Returns:

the targetConnectionInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackupBlobShare

public ValidateMigrationInputSqlServerSqlMITaskInput withBackupBlobShare(BlobShare backupBlobShare)

Set the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.

Parameters:

backupBlobShare - the backupBlobShare value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withBackupFileShare

public ValidateMigrationInputSqlServerSqlMITaskInput withBackupFileShare(FileShare backupFileShare)

Set the backupFileShare property: Backup file share information for all selected databases.

Parameters:

backupFileShare - the backupFileShare value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withBackupMode

public ValidateMigrationInputSqlServerSqlMITaskInput withBackupMode(BackupMode backupMode)

Set the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.

Parameters:

backupMode - the backupMode value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withSelectedDatabases

public ValidateMigrationInputSqlServerSqlMITaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases)

Set the selectedDatabases property: Databases to migrate.

Parameters:

selectedDatabases - the selectedDatabases value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withSelectedLogins

public ValidateMigrationInputSqlServerSqlMITaskInput withSelectedLogins(List<String> selectedLogins)

Set the selectedLogins property: Logins to migrate.

Parameters:

selectedLogins - the selectedLogins value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withSourceConnectionInfo

public ValidateMigrationInputSqlServerSqlMITaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

Parameters:

sourceConnectionInfo - the sourceConnectionInfo value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

withTargetConnectionInfo

public ValidateMigrationInputSqlServerSqlMITaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Parameters:

targetConnectionInfo - the targetConnectionInfo value to set.

Returns:

the ValidateMigrationInputSqlServerSqlMITaskInput object itself.

Applies to