Class MigrationSecretParameters
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationSecretParameters
Migration secret parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrationSecretParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminCredentials property: Admin credentials for source and target servers.Get the sourceServerUsername property: Gets or sets the username for the source server.Get the targetServerUsername property: Gets or sets the username for the target server.voidvalidate()Validates the instance.withAdminCredentials(AdminCredentials adminCredentials) Set the adminCredentials property: Admin credentials for source and target servers.withSourceServerUsername(String sourceServerUsername) Set the sourceServerUsername property: Gets or sets the username for the source server.withTargetServerUsername(String targetServerUsername) Set the targetServerUsername property: Gets or sets the username for the target server.
-
Constructor Details
-
MigrationSecretParameters
public MigrationSecretParameters()Creates an instance of MigrationSecretParameters class.
-
-
Method Details
-
adminCredentials
Get the adminCredentials property: Admin credentials for source and target servers.- Returns:
- the adminCredentials value.
-
withAdminCredentials
Set the adminCredentials property: Admin credentials for source and target servers.- Parameters:
adminCredentials- the adminCredentials value to set.- Returns:
- the MigrationSecretParameters object itself.
-
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
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
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
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.
-