Interface ChangePasswordRequest.Builder

  • Method Details

    • 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)

      A new password that you prompted the user to enter in your application.

      Parameters:
      proposedPassword - A new password that you prompted the user to enter in your application.
      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.
    • overrideConfiguration

      ChangePasswordRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.