Class ChangePasswordRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cognitoidp.model.ChangePasswordRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ChangePasswordRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable
Represents the request to change a user password.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The access token in the change password request.The old password in the change password request.The new password in the change password request.int
hashCode()
void
setAccessToken
(String accessToken) The access token in the change password request.void
setPreviousPassword
(String previousPassword) The old password in the change password request.void
setProposedPassword
(String proposedPassword) The new password in the change password request.toString()
Returns a string representation of this object; useful for testing and debugging.withAccessToken
(String accessToken) The access token in the change password request.withPreviousPassword
(String previousPassword) The old password in the change password request.withProposedPassword
(String proposedPassword) The new password in the change password request.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ChangePasswordRequest
public ChangePasswordRequest()
-
-
Method Details
-
setPreviousPassword
The old password in the change password request.
- Parameters:
previousPassword
- The old password in the change password request.
-
getPreviousPassword
The old password in the change password request.
- Returns:
- The old password in the change password request.
-
withPreviousPassword
The old password in the change password request.
- Parameters:
previousPassword
- The old password in the change password request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProposedPassword
The new password in the change password request.
- Parameters:
proposedPassword
- The new password in the change password request.
-
getProposedPassword
The new password in the change password request.
- Returns:
- The new password in the change password request.
-
withProposedPassword
The new password in the change password request.
- Parameters:
proposedPassword
- The new password in the change password request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccessToken
The access token in the change password request.
- Parameters:
accessToken
- The access token in the change password request.
-
getAccessToken
The access token in the change password request.
- Returns:
- The access token in the change password request.
-
withAccessToken
The access token in the change password request.
- Parameters:
accessToken
- The access token in the change password request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-