public class SetCognitoEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetCognitoEvents operation
.
Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.
NOOP
Constructor and Description |
---|
SetCognitoEventsRequest() |
Modifier and Type | Method and Description |
---|---|
SetCognitoEventsRequest |
addEventsEntry(String key,
String value)
The events to configure
|
SetCognitoEventsRequest |
clearEventsEntries()
Removes all the entries added into Events.
|
SetCognitoEventsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Map<String,String> |
getEvents()
The events to configure
|
String |
getIdentityPoolId()
The Cognito Identity Pool to use when configuring Cognito Events
|
int |
hashCode() |
void |
setEvents(Map<String,String> events)
The events to configure
|
void |
setIdentityPoolId(String identityPoolId)
The Cognito Identity Pool to use when configuring Cognito Events
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetCognitoEventsRequest |
withEvents(Map<String,String> events)
The events to configure
|
SetCognitoEventsRequest |
withIdentityPoolId(String identityPoolId)
The Cognito Identity Pool to use when configuring Cognito Events
|
copyBaseTo, 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
- The Cognito Identity Pool to use when configuring Cognito Eventspublic SetCognitoEventsRequest 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
- The Cognito Identity Pool to use when configuring Cognito Eventspublic Map<String,String> getEvents()
Constraints:
Length: 0 - 1
public void setEvents(Map<String,String> events)
Constraints:
Length: 0 - 1
events
- The events to configurepublic SetCognitoEventsRequest withEvents(Map<String,String> events)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1
events
- The events to configurepublic SetCognitoEventsRequest addEventsEntry(String key, String value)
The method adds a new key-value pair into Events parameter, and returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1
key
- The key of the entry to be added into Events.value
- The corresponding value of the entry to be added into Events.public SetCognitoEventsRequest clearEventsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
public SetCognitoEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.