public class GetIdRequest extends AmazonWebServiceRequest implements Serializable
Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.
This is a public API. You do not need any credentials to call this API.
Constructor and Description |
---|
GetIdRequest() |
Modifier and Type | Method and Description |
---|---|
GetIdRequest |
addLoginsEntry(String key,
String value)
A set of optional name-value pairs that map provider names to provider
tokens.
|
GetIdRequest |
clearLoginsEntries()
Removes all the entries added into Logins.
|
boolean |
equals(Object obj) |
String |
getAccountId()
A standard AWS account ID (9+ digits).
|
String |
getIdentityPoolId()
An identity pool ID in the format REGION:GUID.
|
Map<String,String> |
getLogins()
A set of optional name-value pairs that map provider names to provider
tokens.
|
int |
hashCode() |
void |
setAccountId(String accountId)
A standard AWS account ID (9+ digits).
|
void |
setIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
void |
setLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetIdRequest |
withAccountId(String accountId)
A standard AWS account ID (9+ digits).
|
GetIdRequest |
withIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
GetIdRequest |
withLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAccountId()
A standard AWS account ID (9+ digits).
Constraints:
Length: 1 - 15
Pattern: \d+
A standard AWS account ID (9+ digits).
public void setAccountId(String accountId)
A standard AWS account ID (9+ digits).
Constraints:
Length: 1 - 15
Pattern: \d+
accountId
- A standard AWS account ID (9+ digits).
public GetIdRequest withAccountId(String accountId)
A standard AWS account ID (9+ digits).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 15
Pattern: \d+
accountId
- A standard AWS account ID (9+ digits).
public String getIdentityPoolId()
An identity pool ID in the format REGION:GUID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
An identity pool ID in the format REGION:GUID.
public void setIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId
- An identity pool ID in the format REGION:GUID.
public GetIdRequest withIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId
- An identity pool ID in the format REGION:GUID.
public Map<String,String> getLogins()
A set of optional name-value pairs that map provider names to provider
tokens. The available provider names for Logins
are as
follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
A set of optional name-value pairs that map provider names to
provider tokens. The available provider names for
Logins
are as follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
public void setLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens. The available provider names for Logins
are as
follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
logins
-
A set of optional name-value pairs that map provider names to
provider tokens. The available provider names for
Logins
are as follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
public GetIdRequest withLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens. The available provider names for Logins
are as
follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
Returns a reference to this object so that method calls can be chained together.
logins
-
A set of optional name-value pairs that map provider names to
provider tokens. The available provider names for
Logins
are as follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
public GetIdRequest addLoginsEntry(String key, String value)
A set of optional name-value pairs that map provider names to provider
tokens. The available provider names for Logins
are as
follows:
Facebook: graph.facebook.com
Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example,
cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
Google: accounts.google.com
Amazon: www.amazon.com
Twitter: api.twitter.com
Digits: www.digits.com
The method adds a new key-value pair into Logins 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 Logins.value
- The corresponding value of the entry to be added into
Logins.public GetIdRequest clearLoginsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.