@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the request to change a user password.
NOOP
Constructor and Description |
---|
ChangePasswordRequest() |
Modifier and Type | Method and Description |
---|---|
ChangePasswordRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user whose password you want to change.
|
String |
getPreviousPassword()
The old password.
|
String |
getProposedPassword()
The new password.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user whose password you want to change.
|
void |
setPreviousPassword(String previousPassword)
The old password.
|
void |
setProposedPassword(String proposedPassword)
The new password.
|
String |
toString()
Returns a string representation of this object.
|
ChangePasswordRequest |
withAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user whose password you want to change.
|
ChangePasswordRequest |
withPreviousPassword(String previousPassword)
The old password.
|
ChangePasswordRequest |
withProposedPassword(String proposedPassword)
The new password.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPreviousPassword(String previousPassword)
The old password.
previousPassword
- The old password.public String getPreviousPassword()
The old password.
public ChangePasswordRequest withPreviousPassword(String previousPassword)
The old password.
previousPassword
- The old password.public void setProposedPassword(String proposedPassword)
The new password.
proposedPassword
- The new password.public String getProposedPassword()
The new password.
public ChangePasswordRequest withProposedPassword(String proposedPassword)
The new password.
proposedPassword
- The new password.public void setAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user whose password you want to change.
accessToken
- A valid access token that Amazon Cognito issued to the user whose password you want to change.public String getAccessToken()
A valid access token that Amazon Cognito issued to the user whose password you want to change.
public ChangePasswordRequest withAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user whose password you want to change.
accessToken
- A valid access token that Amazon Cognito issued to the user whose password you want to change.public String toString()
toString
in class Object
Object.toString()
public ChangePasswordRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()