public class GetIdentityPoolRolesResult extends Object implements Serializable
Returned in response to a successful GetIdentityPoolRoles
operation.
| Constructor and Description |
|---|
GetIdentityPoolRolesResult() |
| Modifier and Type | Method and Description |
|---|---|
GetIdentityPoolRolesResult |
addRoleMappingsEntry(String key,
RoleMapping value)
How users for a specific identity provider are to mapped to roles.
|
GetIdentityPoolRolesResult |
addRolesEntry(String key,
String value)
The map of roles associated with this pool.
|
GetIdentityPoolRolesResult |
clearRoleMappingsEntries()
Removes all the entries added into RoleMappings.
|
GetIdentityPoolRolesResult |
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.
|
GetIdentityPoolRolesResult |
withIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
GetIdentityPoolRolesResult |
withRoleMappings(Map<String,RoleMapping> roleMappings)
How users for a specific identity provider are to mapped to roles.
|
GetIdentityPoolRolesResult |
withRoles(Map<String,String> roles)
The map of roles associated with this pool.
|
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 GetIdentityPoolRolesResult 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. Currently only authenticated and unauthenticated roles are supported.
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
public void setRoles(Map<String,String> roles)
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
roles - The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
public GetIdentityPoolRolesResult withRoles(Map<String,String> roles)
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
Returns a reference to this object so that method calls can be chained together.
roles - The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
public GetIdentityPoolRolesResult addRolesEntry(String key, String value)
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
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 GetIdentityPoolRolesResult 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".
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" .
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".
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" .
public GetIdentityPoolRolesResult 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".
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" .
public GetIdentityPoolRolesResult 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".
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 GetIdentityPoolRolesResult 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.