Class ChangePasswordRequest

    • Method Detail

      • oldPassword

        public final String oldPassword()

        The IAM user's current password.

        Returns:
        The IAM user's current password.
      • newPassword

        public final String newPassword()

        The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.

        The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

        Returns:
        The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.

        The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object