Class MigrateMySqlRequestProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.MigrateMySqlRequestProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrateMySqlRequestProperties>
public final class MigrateMySqlRequestProperties
extends Object
implements com.azure.json.JsonSerializable<MigrateMySqlRequestProperties>
MigrateMySqlRequest resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrateMySqlRequestProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: Connection string to the remote MySQL database.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MigrateMySqlRequestProperties from the JsonReader.Get the migrationType property: The type of migration operation to be done.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConnectionString
(String connectionString) Set the connectionString property: Connection string to the remote MySQL database.withMigrationType
(MySqlMigrationType migrationType) Set the migrationType property: The type of migration operation to be done.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MigrateMySqlRequestProperties
public MigrateMySqlRequestProperties()Creates an instance of MigrateMySqlRequestProperties class.
-
-
Method Details
-
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 MigrateMySqlRequestProperties 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 MigrateMySqlRequestProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MigrateMySqlRequestProperties>
- Throws:
IOException
-
fromJson
public static MigrateMySqlRequestProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MigrateMySqlRequestProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MigrateMySqlRequestProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the MigrateMySqlRequestProperties.
-