Class MigrateMySqlRequest
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.models.MigrateMySqlRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
MySQL migration request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: Connection string to the remote MySQL database.Get the migrationType property: The type of migration operation to be done.voidvalidate()Validates the instance.withConnectionString(String connectionString) Set the connectionString property: Connection string to the remote MySQL database.Set the kind property: Kind of resource.withMigrationType(MySqlMigrationType migrationType) Set the migrationType property: The type of migration operation to be done.Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kindMethods inherited from class com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
MigrateMySqlRequest
public MigrateMySqlRequest()Creates an instance of MigrateMySqlRequest class.
-
-
Method Details
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
connectionString
Get the connectionString property: Connection string to the remote MySQL database.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: Connection string to the remote MySQL database.- Parameters:
connectionString- the connectionString value to set.- Returns:
- the MigrateMySqlRequest object itself.
-
migrationType
Get the migrationType property: The type of migration operation to be done.- Returns:
- the migrationType value.
-
withMigrationType
Set the migrationType property: The type of migration operation to be done.- Parameters:
migrationType- the migrationType value to set.- Returns:
- the MigrateMySqlRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-