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 Details

    • MigrateMySqlRequestProperties

      public MigrateMySqlRequestProperties()
      Creates an instance of MigrateMySqlRequestProperties class.
  • Method Details

    • connectionString

      public String connectionString()
      Get the connectionString property: Connection string to the remote MySQL database.
      Returns:
      the connectionString value.
    • withConnectionString

      public MigrateMySqlRequestProperties withConnectionString(String connectionString)
      Set the connectionString property: Connection string to the remote MySQL database.
      Parameters:
      connectionString - the connectionString value to set.
      Returns:
      the MigrateMySqlRequestProperties object itself.
    • migrationType

      public MySqlMigrationType migrationType()
      Get the migrationType property: The type of migration operation to be done.
      Returns:
      the migrationType value.
    • withMigrationType

      public MigrateMySqlRequestProperties withMigrationType(MySqlMigrationType migrationType)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.