Interface ChangePasswordRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CognitoIdentityProviderRequest.Builder
,CopyableBuilder<ChangePasswordRequest.Builder,
,ChangePasswordRequest> SdkBuilder<ChangePasswordRequest.Builder,
,ChangePasswordRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ChangePasswordRequest
@Mutable
@NotThreadSafe
public static interface ChangePasswordRequest.Builder
extends CognitoIdentityProviderRequest.Builder, SdkPojo, CopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest>
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) A valid access token that Amazon Cognito issued to the user whose password you want to change.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.previousPassword
(String previousPassword) The user's previous password.proposedPassword
(String proposedPassword) A new password that you prompted the user to enter in your application.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ChangePasswordRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-