SqlMigrationTaskInput Class

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

Implements

public class SqlMigrationTaskInput
implements JsonSerializable<SqlMigrationTaskInput>

Base class for migration task input.

Constructor Summary

Constructor Description
SqlMigrationTaskInput()

Creates an instance of SqlMigrationTaskInput class.

Method Summary

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

Reads an instance of SqlMigrationTaskInput from the JsonReader.

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.

SqlMigrationTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

SqlMigrationTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Methods inherited from java.lang.Object

Constructor Details

SqlMigrationTaskInput

public SqlMigrationTaskInput()

Creates an instance of SqlMigrationTaskInput class.

Method Details

fromJson

public static SqlMigrationTaskInput fromJson(JsonReader jsonReader)

Reads an instance of SqlMigrationTaskInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

withSourceConnectionInfo

public SqlMigrationTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

Parameters:

sourceConnectionInfo - the sourceConnectionInfo value to set.

Returns:

the SqlMigrationTaskInput object itself.

withTargetConnectionInfo

public SqlMigrationTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Parameters:

targetConnectionInfo - the targetConnectionInfo value to set.

Returns:

the SqlMigrationTaskInput object itself.

Applies to