Class ConnectToTargetAzureDbForMySqlTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput
Input for the task that validates connection to Azure Database for MySQL and target server requirements.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectToTargetAzureDbForMySqlTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the sourceConnectionInfo property: Connection information for source MySQL server.Get the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.void
validate()
Validates the instance.withSourceConnectionInfo
(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source MySQL server.withTargetConnectionInfo
(MySqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.
-
Constructor Details
-
ConnectToTargetAzureDbForMySqlTaskInput
public ConnectToTargetAzureDbForMySqlTaskInput()Creates an instance of ConnectToTargetAzureDbForMySqlTaskInput class.
-
-
Method Details
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Connection information for source MySQL server.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
public ConnectToTargetAzureDbForMySqlTaskInput withSourceConnectionInfo(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source MySQL server.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the ConnectToTargetAzureDbForMySqlTaskInput object itself.
-
targetConnectionInfo
Get the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.- Returns:
- the targetConnectionInfo value.
-
withTargetConnectionInfo
public ConnectToTargetAzureDbForMySqlTaskInput withTargetConnectionInfo(MySqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.- Parameters:
targetConnectionInfo
- the targetConnectionInfo value to set.- Returns:
- the ConnectToTargetAzureDbForMySqlTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-