public class AdminInitiateAuthRequest extends AmazonWebServiceRequest implements Serializable
Initiates the authentication flow, as an administrator.
| Constructor and Description |
|---|
AdminInitiateAuthRequest() |
| Modifier and Type | Method and Description |
|---|---|
AdminInitiateAuthRequest |
addAuthParametersEntry(String key,
String value)
The authentication parameters.
|
AdminInitiateAuthRequest |
addClientMetadataEntry(String key,
String value)
The client app metadata.
|
AdminInitiateAuthRequest |
clearAuthParametersEntries()
Removes all the entries added into AuthParameters.
|
AdminInitiateAuthRequest |
clearClientMetadataEntries()
Removes all the entries added into ClientMetadata.
|
boolean |
equals(Object obj) |
String |
getAuthFlow()
The authentication flow.
|
Map<String,String> |
getAuthParameters()
The authentication parameters.
|
String |
getClientId()
The client app ID.
|
Map<String,String> |
getClientMetadata()
The client app metadata.
|
String |
getUserPoolId()
The ID of the Amazon Cognito user pool.
|
int |
hashCode() |
void |
setAuthFlow(AuthFlowType authFlow)
The authentication flow.
|
void |
setAuthFlow(String authFlow)
The authentication flow.
|
void |
setAuthParameters(Map<String,String> authParameters)
The authentication parameters.
|
void |
setClientId(String clientId)
The client app ID.
|
void |
setClientMetadata(Map<String,String> clientMetadata)
The client app metadata.
|
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.
|
AdminInitiateAuthRequest |
withAuthFlow(AuthFlowType authFlow)
The authentication flow.
|
AdminInitiateAuthRequest |
withAuthFlow(String authFlow)
The authentication flow.
|
AdminInitiateAuthRequest |
withAuthParameters(Map<String,String> authParameters)
The authentication parameters.
|
AdminInitiateAuthRequest |
withClientId(String clientId)
The client app ID.
|
AdminInitiateAuthRequest |
withClientMetadata(Map<String,String> clientMetadata)
The client app metadata.
|
AdminInitiateAuthRequest |
withUserPoolId(String userPoolId)
The ID of the Amazon Cognito user pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 AdminInitiateAuthRequest 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 app ID.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
The client app ID.
public void setClientId(String clientId)
The client app ID.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId - The client app ID.
public AdminInitiateAuthRequest withClientId(String clientId)
The client app ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId - The client app ID.
public String getAuthFlow()
The authentication flow.
Constraints:
Allowed Values: USER_SRP_AUTH, REFRESH_TOKEN_AUTH, REFRESH_TOKEN,
CUSTOM_AUTH, ADMIN_NO_SRP_AUTH
The authentication flow.
AuthFlowTypepublic void setAuthFlow(String authFlow)
The authentication flow.
Constraints:
Allowed Values: USER_SRP_AUTH, REFRESH_TOKEN_AUTH, REFRESH_TOKEN,
CUSTOM_AUTH, ADMIN_NO_SRP_AUTH
authFlow - The authentication flow.
AuthFlowTypepublic AdminInitiateAuthRequest withAuthFlow(String authFlow)
The authentication flow.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: USER_SRP_AUTH, REFRESH_TOKEN_AUTH, REFRESH_TOKEN,
CUSTOM_AUTH, ADMIN_NO_SRP_AUTH
authFlow - The authentication flow.
AuthFlowTypepublic void setAuthFlow(AuthFlowType authFlow)
The authentication flow.
Constraints:
Allowed Values: USER_SRP_AUTH, REFRESH_TOKEN_AUTH, REFRESH_TOKEN,
CUSTOM_AUTH, ADMIN_NO_SRP_AUTH
authFlow - The authentication flow.
AuthFlowTypepublic AdminInitiateAuthRequest withAuthFlow(AuthFlowType authFlow)
The authentication flow.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: USER_SRP_AUTH, REFRESH_TOKEN_AUTH, REFRESH_TOKEN,
CUSTOM_AUTH, ADMIN_NO_SRP_AUTH
authFlow - The authentication flow.
AuthFlowTypepublic Map<String,String> getAuthParameters()
The authentication parameters.
The authentication parameters.
public void setAuthParameters(Map<String,String> authParameters)
The authentication parameters.
authParameters - The authentication parameters.
public AdminInitiateAuthRequest withAuthParameters(Map<String,String> authParameters)
The authentication parameters.
Returns a reference to this object so that method calls can be chained together.
authParameters - The authentication parameters.
public AdminInitiateAuthRequest addAuthParametersEntry(String key, String value)
The authentication parameters.
The method adds a new key-value pair into AuthParameters 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 AuthParameters.value - The corresponding value of the entry to be added into
AuthParameters.public AdminInitiateAuthRequest clearAuthParametersEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,String> getClientMetadata()
The client app metadata.
The client app metadata.
public void setClientMetadata(Map<String,String> clientMetadata)
The client app metadata.
clientMetadata - The client app metadata.
public AdminInitiateAuthRequest withClientMetadata(Map<String,String> clientMetadata)
The client app metadata.
Returns a reference to this object so that method calls can be chained together.
clientMetadata - The client app metadata.
public AdminInitiateAuthRequest addClientMetadataEntry(String key, String value)
The client app metadata.
The method adds a new key-value pair into ClientMetadata 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 ClientMetadata.value - The corresponding value of the entry to be added into
ClientMetadata.public AdminInitiateAuthRequest clearClientMetadataEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.