Class ChangePasswordRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.ChangePasswordRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • ChangePasswordRequest

      public ChangePasswordRequest()
  • Method Details

    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ChangePasswordRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: