public class SetIdentityPoolRolesRequest extends AmazonWebServiceRequest implements Serializable
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.
| Constructor and Description |
|---|
SetIdentityPoolRolesRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetIdentityPoolRolesRequest |
addRoleMappingsEntry(String key,
RoleMapping value)
How users for a specific identity provider are to mapped to roles.
|
SetIdentityPoolRolesRequest |
addRolesEntry(String key,
String value)
The map of roles associated with this pool.
|
SetIdentityPoolRolesRequest |
clearRoleMappingsEntries()
Removes all the entries added into RoleMappings.
|
SetIdentityPoolRolesRequest |
clearRolesEntries()
Removes all the entries added into Roles.
|
boolean |
equals(Object obj) |
String |
getIdentityPoolId()
An identity pool ID in the format REGION:GUID.
|
Map<String,RoleMapping> |
getRoleMappings()
How users for a specific identity provider are to mapped to roles.
|
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 |
setRoleMappings(Map<String,RoleMapping> roleMappings)
How users for a specific identity provider are to mapped to roles.
|
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 |
withRoleMappings(Map<String,RoleMapping> roleMappings)
How users for a specific identity provider are to mapped to roles.
|
SetIdentityPoolRolesRequest |
withRoles(Map<String,String> roles)
The map of roles associated with this pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 SetIdentityPoolRolesRequest 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> getRoles()
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.
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 void setRoles(Map<String,String> 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.
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)
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.
Returns a reference to this object so that method calls can be chained together.
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 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.
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.
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 Map<String,RoleMapping> getRoleMappings()
How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
Up to 25 rules can be specified per identity provider.
How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id" .
Up to 25 rules can be specified per identity provider.
public void setRoleMappings(Map<String,RoleMapping> roleMappings)
How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
Up to 25 rules can be specified per identity provider.
roleMappings - How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id" .
Up to 25 rules can be specified per identity provider.
public SetIdentityPoolRolesRequest withRoleMappings(Map<String,RoleMapping> roleMappings)
How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
Up to 25 rules can be specified per identity provider.
Returns a reference to this object so that method calls can be chained together.
roleMappings - How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id" .
Up to 25 rules can be specified per identity provider.
public SetIdentityPoolRolesRequest addRoleMappingsEntry(String key, RoleMapping value)
How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
Up to 25 rules can be specified per identity provider.
The method adds a new key-value pair into RoleMappings 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 RoleMappings.value - The corresponding value of the entry to be added into
RoleMappings.public SetIdentityPoolRolesRequest clearRoleMappingsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.