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

public final class AdminCredentials extends Object
Server admin credentials.
  • Constructor Details

    • AdminCredentials

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

    • sourceServerPassword

      public String sourceServerPassword()
      Get the sourceServerPassword property: Password for source server.
      Returns:
      the sourceServerPassword value.
    • withSourceServerPassword

      public AdminCredentials withSourceServerPassword(String sourceServerPassword)
      Set the sourceServerPassword property: Password for source server.
      Parameters:
      sourceServerPassword - the sourceServerPassword value to set.
      Returns:
      the AdminCredentials object itself.
    • targetServerPassword

      public String targetServerPassword()
      Get the targetServerPassword property: Password for target server.
      Returns:
      the targetServerPassword value.
    • withTargetServerPassword

      public AdminCredentials withTargetServerPassword(String targetServerPassword)
      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.