Class ChangePasswordRequest

    • Constructor Detail

      • ChangePasswordRequest

        public ChangePasswordRequest()
    • Method Detail

      • setOldPassword

        public void setOldPassword​(String oldPassword)

        The IAM user's current password.

        Parameters:
        oldPassword - The IAM user's current password.
      • getOldPassword

        public String getOldPassword()

        The IAM user's current password.

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

        public ChangePasswordRequest withOldPassword​(String oldPassword)

        The IAM user's current password.

        Parameters:
        oldPassword - The IAM user's current password.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNewPassword

        public void setNewPassword​(String newPassword)

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

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

        Parameters:
        newPassword - The new password. The new password must conform to the AWS account's password policy, if one exists.

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

      • getNewPassword

        public String getNewPassword()

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

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

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

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

      • withNewPassword

        public ChangePasswordRequest withNewPassword​(String newPassword)

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

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

        Parameters:
        newPassword - The new password. The new password must conform to the AWS account's password policy, if one exists.

        The regex pattern for this parameter is a string of characters consisting of 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. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object