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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ChangePasswordRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangePasswordRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getAccessToken()
The access token in the change password request.String
getPreviousPassword()
The old password in the change password request.String
getProposedPassword()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChangePasswordRequest
withAccessToken(String accessToken)
The access token in the change password request.ChangePasswordRequest
withPreviousPassword(String previousPassword)
The old password in the change password request.ChangePasswordRequest
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
-
-
-
-
Method Detail
-
setPreviousPassword
public void setPreviousPassword(String previousPassword)
The old password in the change password request.
- Parameters:
previousPassword
- The old password in the change password request.
-
getPreviousPassword
public String getPreviousPassword()
The old password in the change password request.
- Returns:
- The old password in the change password request.
-
withPreviousPassword
public ChangePasswordRequest withPreviousPassword(String previousPassword)
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
public void setProposedPassword(String proposedPassword)
The new password in the change password request.
- Parameters:
proposedPassword
- The new password in the change password request.
-
getProposedPassword
public String getProposedPassword()
The new password in the change password request.
- Returns:
- The new password in the change password request.
-
withProposedPassword
public ChangePasswordRequest withProposedPassword(String proposedPassword)
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
public void setAccessToken(String accessToken)
The access token in the change password request.
- Parameters:
accessToken
- The access token in the change password request.
-
getAccessToken
public String getAccessToken()
The access token in the change password request.
- Returns:
- The access token in the change password request.
-
withAccessToken
public ChangePasswordRequest withAccessToken(String accessToken)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ChangePasswordRequest 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:
Object.clone()
-
-