Class AdminCredentials
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AdminCredentials
Server admin credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the sourceServerPassword property: Password for source server.Get the targetServerPassword property: Password for target server.voidvalidate()Validates the instance.withSourceServerPassword(String sourceServerPassword) Set the sourceServerPassword property: Password for source server.withTargetServerPassword(String targetServerPassword) Set the targetServerPassword property: Password for target server.
-
Constructor Details
-
AdminCredentials
public AdminCredentials()Creates an instance of AdminCredentials class.
-
-
Method Details
-
sourceServerPassword
Get the sourceServerPassword property: Password for source server.- Returns:
- the sourceServerPassword value.
-
withSourceServerPassword
Set the sourceServerPassword property: Password for source server.- Parameters:
sourceServerPassword- the sourceServerPassword value to set.- Returns:
- the AdminCredentials object itself.
-
targetServerPassword
Get the targetServerPassword property: Password for target server.- Returns:
- the targetServerPassword value.
-
withTargetServerPassword
Set the targetServerPassword property: Password for target server.- Parameters:
targetServerPassword- the targetServerPassword value to set.- Returns:
- the AdminCredentials object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-