Class MigrationSecretParameters

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationSecretParameters

public final class MigrationSecretParameters extends Object
Migration secret parameters.
  • Constructor Details

    • MigrationSecretParameters

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

    • adminCredentials

      public AdminCredentials adminCredentials()
      Get the adminCredentials property: Admin credentials for source and target servers.
      Returns:
      the adminCredentials value.
    • withAdminCredentials

      public MigrationSecretParameters withAdminCredentials(AdminCredentials adminCredentials)
      Set the adminCredentials property: Admin credentials for source and target servers.
      Parameters:
      adminCredentials - the adminCredentials value to set.
      Returns:
      the MigrationSecretParameters object itself.
    • sourceServerUsername

      public String sourceServerUsername()
      Get the sourceServerUsername property: Gets or sets the username for the source server. This user need not be an admin.
      Returns:
      the sourceServerUsername value.
    • withSourceServerUsername

      public MigrationSecretParameters withSourceServerUsername(String sourceServerUsername)
      Set the sourceServerUsername property: Gets or sets the username for the source server. This user need not be an admin.
      Parameters:
      sourceServerUsername - the sourceServerUsername value to set.
      Returns:
      the MigrationSecretParameters object itself.
    • targetServerUsername

      public String targetServerUsername()
      Get the targetServerUsername property: Gets or sets the username for the target server. This user need not be an admin.
      Returns:
      the targetServerUsername value.
    • withTargetServerUsername

      public MigrationSecretParameters withTargetServerUsername(String targetServerUsername)
      Set the targetServerUsername property: Gets or sets the username for the target server. This user need not be an admin.
      Parameters:
      targetServerUsername - the targetServerUsername value to set.
      Returns:
      the MigrationSecretParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.