public class VerifyUserAttributeRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Verifies the specified user attributes in the user pool.
If your user pool requires verification before Amazon Cognito updates the attribute value, VerifyUserAttribute updates the affected attribute to its pending value. For more information, see UserAttributeUpdateSettingsType.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.
| Constructor and Description |
|---|
VerifyUserAttributeRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user whose user
attributes you want to verify.
|
java.lang.String |
getAttributeName()
The attribute name in the request to verify user attributes.
|
java.lang.String |
getCode()
The verification code in the request to verify user attributes.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user
attributes you want to verify.
|
void |
setAttributeName(java.lang.String attributeName)
The attribute name in the request to verify user attributes.
|
void |
setCode(java.lang.String code)
The verification code in the request to verify user attributes.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VerifyUserAttributeRequest |
withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user
attributes you want to verify.
|
VerifyUserAttributeRequest |
withAttributeName(java.lang.String attributeName)
The attribute name in the request to verify user attributes.
|
VerifyUserAttributeRequest |
withCode(java.lang.String code)
The verification code in the request to verify user attributes.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getAccessToken()
A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
public void setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
public VerifyUserAttributeRequest withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.
public java.lang.String getAttributeName()
The attribute name in the request to verify user attributes.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The attribute name in the request to verify user attributes.
public void setAttributeName(java.lang.String attributeName)
The attribute name in the request to verify user attributes.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
attributeName - The attribute name in the request to verify user attributes.
public VerifyUserAttributeRequest withAttributeName(java.lang.String attributeName)
The attribute name in the request to verify user attributes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
attributeName - The attribute name in the request to verify user attributes.
public java.lang.String getCode()
The verification code in the request to verify user attributes.
Constraints:
Length: 1 - 2048
Pattern: [\S]+
The verification code in the request to verify user attributes.
public void setCode(java.lang.String code)
The verification code in the request to verify user attributes.
Constraints:
Length: 1 - 2048
Pattern: [\S]+
code - The verification code in the request to verify user attributes.
public VerifyUserAttributeRequest withCode(java.lang.String code)
The verification code in the request to verify user attributes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
Pattern: [\S]+
code - The verification code in the request to verify user attributes.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object