public class SetIdentityPoolRolesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetIdentityPoolRoles operation.
Sets the roles for an identity pool. These roles are used when making
calls to GetCredentialsForIdentity action.
You must use AWS Developer credentials to call this API.
NOOP| Constructor and Description |
|---|
SetIdentityPoolRolesRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetIdentityPoolRolesRequest |
addRolesEntry(String key,
String value)
The map of roles associated with this pool.
|
SetIdentityPoolRolesRequest |
clearRolesEntries()
Removes all the entries added into Roles.
|
SetIdentityPoolRolesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getIdentityPoolId()
An identity pool ID in the format REGION:GUID.
|
Map<String,String> |
getRoles()
The map of roles associated with this pool.
|
int |
hashCode() |
void |
setIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
void |
setRoles(Map<String,String> roles)
The map of roles associated with this pool.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetIdentityPoolRolesRequest |
withIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
SetIdentityPoolRolesRequest |
withRoles(Map<String,String> roles)
The map of roles associated with this pool.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getIdentityPoolId()
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - An identity pool ID in the format REGION:GUID.public SetIdentityPoolRolesRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId - An identity pool ID in the format REGION:GUID.public Map<String,String> getRoles()
Constraints:
Length: 0 - 2
public void setRoles(Map<String,String> roles)
Constraints:
Length: 0 - 2
roles - The map of roles associated with this pool. For a given role, the key
will be either "authenticated" or "unauthenticated" and the value will
be the Role ARN.public SetIdentityPoolRolesRequest withRoles(Map<String,String> roles)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 2
roles - The map of roles associated with this pool. For a given role, the key
will be either "authenticated" or "unauthenticated" and the value will
be the Role ARN.public SetIdentityPoolRolesRequest addRolesEntry(String key, String value)
The method adds a new key-value pair into Roles parameter, and returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 2
key - The key of the entry to be added into Roles.value - The corresponding value of the entry to be added into Roles.public SetIdentityPoolRolesRequest clearRolesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()public SetIdentityPoolRolesRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.