Class ChangePasswordRequest

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

public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents the request to change a user password.

See Also:
  • Constructor Details

    • ChangePasswordRequest

      public ChangePasswordRequest()
  • Method Details

    • setPreviousPassword

      public void setPreviousPassword(String previousPassword)

      The old password in the change password request.

      Parameters:
      previousPassword - The old password in the change password request.
    • getPreviousPassword

      public String getPreviousPassword()

      The old password in the change password request.

      Returns:
      The old password in the change password request.
    • withPreviousPassword

      public ChangePasswordRequest withPreviousPassword(String previousPassword)

      The old password in the change password request.

      Parameters:
      previousPassword - The old password in the change password request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProposedPassword

      public void setProposedPassword(String proposedPassword)

      The new password in the change password request.

      Parameters:
      proposedPassword - The new password in the change password request.
    • getProposedPassword

      public String getProposedPassword()

      The new password in the change password request.

      Returns:
      The new password in the change password request.
    • withProposedPassword

      public ChangePasswordRequest withProposedPassword(String proposedPassword)

      The new password in the change password request.

      Parameters:
      proposedPassword - The new password in the change password request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAccessToken

      public void setAccessToken(String accessToken)

      The access token in the change password request.

      Parameters:
      accessToken - The access token in the change password request.
    • getAccessToken

      public String getAccessToken()

      The access token in the change password request.

      Returns:
      The access token in the change password request.
    • withAccessToken

      public ChangePasswordRequest withAccessToken(String accessToken)

      The access token in the change password request.

      Parameters:
      accessToken - The access token in the change password request.
      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: