Class MigrationSecretParametersForPatch

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationSecretParametersForPatch
All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationSecretParametersForPatch>

public final class MigrationSecretParametersForPatch extends Object implements com.azure.json.JsonSerializable<MigrationSecretParametersForPatch>
Migration secret parameters.
  • Constructor Details

    • MigrationSecretParametersForPatch

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

    • adminCredentials

      public AdminCredentialsForPatch adminCredentials()
      Get the adminCredentials property: Credentials of administrator users for source and target servers.
      Returns:
      the adminCredentials value.
    • withAdminCredentials

      public MigrationSecretParametersForPatch withAdminCredentials(AdminCredentialsForPatch adminCredentials)
      Set the adminCredentials property: Credentials of administrator users for source and target servers.
      Parameters:
      adminCredentials - the adminCredentials value to set.
      Returns:
      the MigrationSecretParametersForPatch object itself.
    • sourceServerUsername

      public String sourceServerUsername()
      Get the sourceServerUsername property: Gets or sets the name of the user for the source server. This user doesn't need to be an administrator.
      Returns:
      the sourceServerUsername value.
    • withSourceServerUsername

      public MigrationSecretParametersForPatch withSourceServerUsername(String sourceServerUsername)
      Set the sourceServerUsername property: Gets or sets the name of the user for the source server. This user doesn't need to be an administrator.
      Parameters:
      sourceServerUsername - the sourceServerUsername value to set.
      Returns:
      the MigrationSecretParametersForPatch object itself.
    • targetServerUsername

      public String targetServerUsername()
      Get the targetServerUsername property: Gets or sets the name of the user for the target server. This user doesn't need to be an administrator.
      Returns:
      the targetServerUsername value.
    • withTargetServerUsername

      public MigrationSecretParametersForPatch withTargetServerUsername(String targetServerUsername)
      Set the targetServerUsername property: Gets or sets the name of the user for the target server. This user doesn't need to be an administrator.
      Parameters:
      targetServerUsername - the targetServerUsername value to set.
      Returns:
      the MigrationSecretParametersForPatch 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<MigrationSecretParametersForPatch>
      Throws:
      IOException
    • fromJson

      public static MigrationSecretParametersForPatch fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MigrationSecretParametersForPatch from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MigrationSecretParametersForPatch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MigrationSecretParametersForPatch.