public class GetIdRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.lang.String |
getAccountId()
A standard AWS account ID (9+ digits).
|
java.lang.String |
getIdentityPoolId()
An identity pool ID in the format REGION:GUID.
|
java.util.Map<java.lang.String,java.lang.String> |
getLogins()
A set of optional name-value pairs that map provider names to provider
tokens.
|
int |
hashCode() |
void |
setAccountId(java.lang.String accountId)
A standard AWS account ID (9+ digits).
|
void |
setIdentityPoolId(java.lang.String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
void |
setLogins(java.util.Map<java.lang.String,java.lang.String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetIdRequest |
withAccountId(java.lang.String accountId)
A standard AWS account ID (9+ digits).
|
GetIdRequest |
withIdentityPoolId(java.lang.String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
GetIdRequest |
withLogins(java.util.Map<java.lang.String,java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object