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.
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()
Creates a shallow clone of this request.
|
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, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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 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. Currently only
authenticated and unauthenticated roles are supported.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. Currently only
authenticated and unauthenticated roles are supported.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 Object
Object.toString()
public SetIdentityPoolRolesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.