Class ConnectToSourceMySqlTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToSourceMySqlTaskInput
Input for the task that validates MySQL database connection.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectToSourceMySqlTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the checkPermissionsGroup property: Permission group for validations.Get the sourceConnectionInfo property: Information for connecting to MySQL source.Get the targetPlatform property: Target Platform for the migration.void
validate()
Validates the instance.withCheckPermissionsGroup
(ServerLevelPermissionsGroup checkPermissionsGroup) Set the checkPermissionsGroup property: Permission group for validations.withSourceConnectionInfo
(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to MySQL source.withTargetPlatform
(MySqlTargetPlatformType targetPlatform) Set the targetPlatform property: Target Platform for the migration.
-
Constructor Details
-
ConnectToSourceMySqlTaskInput
public ConnectToSourceMySqlTaskInput()Creates an instance of ConnectToSourceMySqlTaskInput class.
-
-
Method Details
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Information for connecting to MySQL source.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
public ConnectToSourceMySqlTaskInput withSourceConnectionInfo(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to MySQL source.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the ConnectToSourceMySqlTaskInput object itself.
-
targetPlatform
Get the targetPlatform property: Target Platform for the migration.- Returns:
- the targetPlatform value.
-
withTargetPlatform
Set the targetPlatform property: Target Platform for the migration.- Parameters:
targetPlatform
- the targetPlatform value to set.- Returns:
- the ConnectToSourceMySqlTaskInput object itself.
-
checkPermissionsGroup
Get the checkPermissionsGroup property: Permission group for validations.- Returns:
- the checkPermissionsGroup value.
-
withCheckPermissionsGroup
public ConnectToSourceMySqlTaskInput withCheckPermissionsGroup(ServerLevelPermissionsGroup checkPermissionsGroup) Set the checkPermissionsGroup property: Permission group for validations.- Parameters:
checkPermissionsGroup
- the checkPermissionsGroup value to set.- Returns:
- the ConnectToSourceMySqlTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-