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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-