public class GetIdentityPoolRolesResult extends Object implements Serializable, Cloneable
Returned in response to a successful GetIdentityPoolRoles
operation.
| Constructor and Description |
|---|
GetIdentityPoolRolesResult() |
| Modifier and Type | Method and Description |
|---|---|
GetIdentityPoolRolesResult |
addRolesEntry(String key,
String value)
The map of roles associated with this pool.
|
GetIdentityPoolRolesResult |
clearRolesEntries()
Removes all the entries added into Roles.
|
GetIdentityPoolRolesResult |
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.
|
GetIdentityPoolRolesResult |
withIdentityPoolId(String identityPoolId)
An identity pool ID in the format REGION:GUID.
|
GetIdentityPoolRolesResult |
withRoles(Map<String,String> roles)
The map of roles associated with this pool.
|
public 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 GetIdentityPoolRolesResult 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. Currently only
authenticated and unauthenticated roles are supported.public GetIdentityPoolRolesResult 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. Currently only
authenticated and unauthenticated roles are supported.public GetIdentityPoolRolesResult 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 GetIdentityPoolRolesResult clearRolesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()public GetIdentityPoolRolesResult clone()
Copyright © 2015. All rights reserved.