Class AdminSetUserPasswordRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AdminSetUserPasswordRequest.Builder,AdminSetUserPasswordRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringpassword()The new temporary or permanent password that you want to set for the user.final BooleanSet totrueto set a password that the user can immediately sign in with.static Class<? extends AdminSetUserPasswordRequest.Builder>final StringtoString()Returns a string representation of this object.final Stringusername()The name of the user that you want to query or modify.final StringThe ID of the user pool where you want to set the user's password.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
userPoolId
The ID of the user pool where you want to set the user's password.
- Returns:
- The ID of the user pool where you want to set the user's password.
-
username
The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If
usernameisn't an alias attribute in your user pool, this value must be thesubof a local user or the username of a user from a third-party IdP.- Returns:
- The name of the user that you want to query or modify. The value of this parameter is typically your
user's username, but it can be any of their alias attributes. If
usernameisn't an alias attribute in your user pool, this value must be thesubof a local user or the username of a user from a third-party IdP.
-
password
The new temporary or permanent password that you want to set for the user. You can't remove the password for a user who already has a password so that they can only sign in with passwordless methods. In this scenario, you must create a new user without a password.
- Returns:
- The new temporary or permanent password that you want to set for the user. You can't remove the password for a user who already has a password so that they can only sign in with passwordless methods. In this scenario, you must create a new user without a password.
-
permanent
Set to
trueto set a password that the user can immediately sign in with. Set tofalseto set a temporary password that the user must change on their next sign-in.- Returns:
- Set to
trueto set a password that the user can immediately sign in with. Set tofalseto set a temporary password that the user must change on their next sign-in.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AdminSetUserPasswordRequest.Builder,AdminSetUserPasswordRequest> - Specified by:
toBuilderin classCognitoIdentityProviderRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-