public class CognitoEvent extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
CognitoEvent.DatasetRecord
DatasetRecord contains the information about each record in a data set.
|
Constructor and Description |
---|
CognitoEvent()
default constructor
(Not available in v1)
|
Modifier and Type | Method and Description |
---|---|
CognitoEvent |
clone() |
boolean |
equals(Object obj) |
String |
getDatasetName()
Gets the data set name of the event
|
Map<String,CognitoEvent.DatasetRecord> |
getDatasetRecords()
Gets the map of data set records for the event
|
String |
getEventType()
Gets the event type
|
String |
getIdentityId()
Gets the identity pool ID associated with the data set
|
String |
getIdentityPoolId()
Gets the identity pool ID associated with the data set
|
String |
getRegion()
Gets the region in which data set resides.
|
Integer |
getVersion()
Gets the event version
|
int |
hashCode() |
void |
setDatasetName(String datasetName)
Sets the data set name for the event
|
void |
setDatasetRecords(Map<String,CognitoEvent.DatasetRecord> datasetRecords)
Sets the map of data set records for the event
|
void |
setEventType(String eventType)
Sets the event type
|
void |
setIdentityId(String identityId)
Sets the identity pool ID associated with the data set
|
void |
setIdentityPoolId(String identityPoolId)
Sets the identity pool ID associated with the data set
|
void |
setRegion(String region)
Sets the region in which data set resides.
|
void |
setVersion(Integer version)
Sets the event version
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CognitoEvent |
withDatasetName(String datasetName) |
CognitoEvent |
withDatasetRecords(Map<String,CognitoEvent.DatasetRecord> datasetRecords) |
CognitoEvent |
withEventType(String eventType) |
CognitoEvent |
withIdentityId(String identityId) |
CognitoEvent |
withIdentityPoolId(String identityPoolId) |
CognitoEvent |
withRegion(String region) |
CognitoEvent |
withVersion(Integer version) |
public String getRegion()
public void setRegion(String region)
region
- A string containing a region namepublic CognitoEvent withRegion(String region)
region
- String of region namepublic Map<String,CognitoEvent.DatasetRecord> getDatasetRecords()
public void setDatasetRecords(Map<String,CognitoEvent.DatasetRecord> datasetRecords)
datasetRecords
- A map of string & data set record key/value pairspublic CognitoEvent withDatasetRecords(Map<String,CognitoEvent.DatasetRecord> datasetRecords)
datasetRecords
- a map of string & data set record key/value pairspublic String getIdentityPoolId()
public void setIdentityPoolId(String identityPoolId)
identityPoolId
- A string containing the identity pool ID.public CognitoEvent withIdentityPoolId(String identityPoolId)
identityPoolId
- a string containing the identity pool IDpublic String getIdentityId()
public void setIdentityId(String identityId)
identityId
- A string containing the identity pool IDpublic CognitoEvent withIdentityId(String identityId)
identityId
- a string containing identity idpublic String getDatasetName()
public void setDatasetName(String datasetName)
datasetName
- A string containing the data set namepublic CognitoEvent withDatasetName(String datasetName)
datasetName
- String with data set namepublic String getEventType()
public void setEventType(String eventType)
eventType
- A string containing the event typepublic CognitoEvent withEventType(String eventType)
eventType
- String with event typepublic Integer getVersion()
public void setVersion(Integer version)
version
- An integer representing the event versionpublic CognitoEvent withVersion(Integer version)
version
- Integer with versionpublic String toString()
toString
in class Object
Object.toString()
public CognitoEvent clone()
Copyright © 2018. All rights reserved.