public class AdminRespondToAuthChallengeRequest extends AmazonWebServiceRequest implements Serializable
Responds to an authentication challenge, as an administrator.
Constructor and Description |
---|
AdminRespondToAuthChallengeRequest() |
Modifier and Type | Method and Description |
---|---|
AdminRespondToAuthChallengeRequest |
addChallengeResponsesEntry(String key,
String value)
The challenge response.
|
AdminRespondToAuthChallengeRequest |
clearChallengeResponsesEntries()
Removes all the entries added into ChallengeResponses.
|
boolean |
equals(Object obj) |
String |
getChallengeName()
The name of the challenge.
|
Map<String,String> |
getChallengeResponses()
The challenge response.
|
String |
getClientId()
The client ID.
|
String |
getSession()
The session.
|
String |
getUserPoolId()
The ID of the Amazon Cognito user pool.
|
int |
hashCode() |
void |
setChallengeName(ChallengeNameType challengeName)
The name of the challenge.
|
void |
setChallengeName(String challengeName)
The name of the challenge.
|
void |
setChallengeResponses(Map<String,String> challengeResponses)
The challenge response.
|
void |
setClientId(String clientId)
The client ID.
|
void |
setSession(String session)
The session.
|
void |
setUserPoolId(String userPoolId)
The ID of the Amazon Cognito user pool.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminRespondToAuthChallengeRequest |
withChallengeName(ChallengeNameType challengeName)
The name of the challenge.
|
AdminRespondToAuthChallengeRequest |
withChallengeName(String challengeName)
The name of the challenge.
|
AdminRespondToAuthChallengeRequest |
withChallengeResponses(Map<String,String> challengeResponses)
The challenge response.
|
AdminRespondToAuthChallengeRequest |
withClientId(String clientId)
The client ID.
|
AdminRespondToAuthChallengeRequest |
withSession(String session)
The session.
|
AdminRespondToAuthChallengeRequest |
withUserPoolId(String userPoolId)
The ID of the Amazon Cognito user pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getUserPoolId()
The ID of the Amazon Cognito user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The ID of the Amazon Cognito user pool.
public void setUserPoolId(String userPoolId)
The ID of the Amazon Cognito user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId
- The ID of the Amazon Cognito user pool.
public AdminRespondToAuthChallengeRequest withUserPoolId(String userPoolId)
The ID of the Amazon Cognito user pool.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId
- The ID of the Amazon Cognito user pool.
public String getClientId()
The client ID.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
The client ID.
public void setClientId(String clientId)
The client ID.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId
- The client ID.
public AdminRespondToAuthChallengeRequest withClientId(String clientId)
The client ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId
- The client ID.
public String getChallengeName()
The name of the challenge.
Constraints:
Allowed Values: SMS_MFA, PASSWORD_VERIFIER, CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
The name of the challenge.
ChallengeNameType
public void setChallengeName(String challengeName)
The name of the challenge.
Constraints:
Allowed Values: SMS_MFA, PASSWORD_VERIFIER, CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
challengeName
- The name of the challenge.
ChallengeNameType
public AdminRespondToAuthChallengeRequest withChallengeName(String challengeName)
The name of the challenge.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS_MFA, PASSWORD_VERIFIER, CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
challengeName
- The name of the challenge.
ChallengeNameType
public void setChallengeName(ChallengeNameType challengeName)
The name of the challenge.
Constraints:
Allowed Values: SMS_MFA, PASSWORD_VERIFIER, CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
challengeName
- The name of the challenge.
ChallengeNameType
public AdminRespondToAuthChallengeRequest withChallengeName(ChallengeNameType challengeName)
The name of the challenge.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS_MFA, PASSWORD_VERIFIER, CUSTOM_CHALLENGE,
DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, ADMIN_NO_SRP_AUTH,
NEW_PASSWORD_REQUIRED
challengeName
- The name of the challenge.
ChallengeNameType
public Map<String,String> getChallengeResponses()
The challenge response.
The challenge response.
public void setChallengeResponses(Map<String,String> challengeResponses)
The challenge response.
challengeResponses
- The challenge response.
public AdminRespondToAuthChallengeRequest withChallengeResponses(Map<String,String> challengeResponses)
The challenge response.
Returns a reference to this object so that method calls can be chained together.
challengeResponses
- The challenge response.
public AdminRespondToAuthChallengeRequest addChallengeResponsesEntry(String key, String value)
The challenge response.
The method adds a new key-value pair into ChallengeResponses parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into ChallengeResponses.value
- The corresponding value of the entry to be added into
ChallengeResponses.public AdminRespondToAuthChallengeRequest clearChallengeResponsesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getSession()
The session.
Constraints:
Length: 20 - 2048
The session.
public void setSession(String session)
The session.
Constraints:
Length: 20 - 2048
session
- The session.
public AdminRespondToAuthChallengeRequest withSession(String session)
The session.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
session
- The session.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2017. All rights reserved.