Interface ChangePasswordRequest.Builder

    • Method Detail

      • previousPassword

        ChangePasswordRequest.Builder previousPassword​(String previousPassword)

        The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.

        Parameters:
        previousPassword - The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • proposedPassword

        ChangePasswordRequest.Builder proposedPassword​(String proposedPassword)

        The new password.

        Parameters:
        proposedPassword - The new password.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessToken

        ChangePasswordRequest.Builder accessToken​(String accessToken)

        A valid access token that Amazon Cognito issued to the user whose password you want to change.

        Parameters:
        accessToken - A valid access token that Amazon Cognito issued to the user whose password you want to change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.