ValidateSyncMigrationInputSqlServerTaskInput Class

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

Implements

public final class ValidateSyncMigrationInputSqlServerTaskInput
implements JsonSerializable<ValidateSyncMigrationInputSqlServerTaskInput>

Input for task that validates migration input for SQL sync migrations.

Constructor Summary

Constructor Description
ValidateSyncMigrationInputSqlServerTaskInput()

Creates an instance of ValidateSyncMigrationInputSqlServerTaskInput class.

Method Summary

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

Reads an instance of ValidateSyncMigrationInputSqlServerTaskInput from the JsonReader.

List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases()

Get the selectedDatabases property: Databases to migrate.

SqlConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source SQL server.

SqlConnectionInfo targetConnectionInfo()

Get the targetConnectionInfo property: Information for connecting to target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidateSyncMigrationInputSqlServerTaskInput withSelectedDatabases(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases)

Set the selectedDatabases property: Databases to migrate.

ValidateSyncMigrationInputSqlServerTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source SQL server.

ValidateSyncMigrationInputSqlServerTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Methods inherited from java.lang.Object

Constructor Details

ValidateSyncMigrationInputSqlServerTaskInput

public ValidateSyncMigrationInputSqlServerTaskInput()

Creates an instance of ValidateSyncMigrationInputSqlServerTaskInput class.

Method Details

fromJson

public static ValidateSyncMigrationInputSqlServerTaskInput fromJson(JsonReader jsonReader)

Reads an instance of ValidateSyncMigrationInputSqlServerTaskInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ValidateSyncMigrationInputSqlServerTaskInput 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<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases()

Get the selectedDatabases property: Databases to migrate.

Returns:

the selectedDatabases value.

sourceConnectionInfo

public SqlConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source SQL server.

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.

withSelectedDatabases

public ValidateSyncMigrationInputSqlServerTaskInput withSelectedDatabases(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases)

Set the selectedDatabases property: Databases to migrate.

Parameters:

selectedDatabases - the selectedDatabases value to set.

Returns:

the ValidateSyncMigrationInputSqlServerTaskInput object itself.

withSourceConnectionInfo

public ValidateSyncMigrationInputSqlServerTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source SQL server.

Parameters:

sourceConnectionInfo - the sourceConnectionInfo value to set.

Returns:

the ValidateSyncMigrationInputSqlServerTaskInput object itself.

withTargetConnectionInfo

public ValidateSyncMigrationInputSqlServerTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Parameters:

targetConnectionInfo - the targetConnectionInfo value to set.

Returns:

the ValidateSyncMigrationInputSqlServerTaskInput object itself.

Applies to