@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
Specifies information about an event that reports data to Amazon Pinpoint.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
Event |
addMetricsEntry(String key,
Double value)
Add a single Metrics entry
|
Event |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Event |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getAppPackageName()
The package name of the app that's recording the event.
|
String |
getAppTitle()
The title of the app that's recording the event.
|
String |
getAppVersionCode()
The version number of the app that's recording the event.
|
Map<String,String> |
getAttributes()
One or more custom attributes that are associated with the event.
|
String |
getClientSdkVersion()
The version of the SDK that's running on the client device.
|
String |
getEventType()
The name of the event.
|
Map<String,Double> |
getMetrics()
One or more custom metrics that are associated with the event.
|
String |
getSdkName()
The name of the SDK that's being used to record the event.
|
Session |
getSession()
Information about the session in which the event occurred.
|
String |
getTimestamp()
The date and time, in ISO 8601 format, when the event occurred.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppPackageName(String appPackageName)
The package name of the app that's recording the event.
|
void |
setAppTitle(String appTitle)
The title of the app that's recording the event.
|
void |
setAppVersionCode(String appVersionCode)
The version number of the app that's recording the event.
|
void |
setAttributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
|
void |
setClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
void |
setEventType(String eventType)
The name of the event.
|
void |
setMetrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
|
void |
setSdkName(String sdkName)
The name of the SDK that's being used to record the event.
|
void |
setSession(Session session)
Information about the session in which the event occurred.
|
void |
setTimestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withAppPackageName(String appPackageName)
The package name of the app that's recording the event.
|
Event |
withAppTitle(String appTitle)
The title of the app that's recording the event.
|
Event |
withAppVersionCode(String appVersionCode)
The version number of the app that's recording the event.
|
Event |
withAttributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
|
Event |
withClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event |
withEventType(String eventType)
The name of the event.
|
Event |
withMetrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
|
Event |
withSdkName(String sdkName)
The name of the SDK that's being used to record the event.
|
Event |
withSession(Session session)
Information about the session in which the event occurred.
|
Event |
withTimestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
|
public void setAppPackageName(String appPackageName)
The package name of the app that's recording the event.
appPackageName
- The package name of the app that's recording the event.public String getAppPackageName()
The package name of the app that's recording the event.
public Event withAppPackageName(String appPackageName)
The package name of the app that's recording the event.
appPackageName
- The package name of the app that's recording the event.public void setAppTitle(String appTitle)
The title of the app that's recording the event.
appTitle
- The title of the app that's recording the event.public String getAppTitle()
The title of the app that's recording the event.
public Event withAppTitle(String appTitle)
The title of the app that's recording the event.
appTitle
- The title of the app that's recording the event.public void setAppVersionCode(String appVersionCode)
The version number of the app that's recording the event.
appVersionCode
- The version number of the app that's recording the event.public String getAppVersionCode()
The version number of the app that's recording the event.
public Event withAppVersionCode(String appVersionCode)
The version number of the app that's recording the event.
appVersionCode
- The version number of the app that's recording the event.public Map<String,String> getAttributes()
One or more custom attributes that are associated with the event.
public void setAttributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
attributes
- One or more custom attributes that are associated with the event.public Event withAttributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
attributes
- One or more custom attributes that are associated with the event.public Event addAttributesEntry(String key, String value)
public Event clearAttributesEntries()
public void setClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
clientSdkVersion
- The version of the SDK that's running on the client device.public String getClientSdkVersion()
The version of the SDK that's running on the client device.
public Event withClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
clientSdkVersion
- The version of the SDK that's running on the client device.public void setEventType(String eventType)
The name of the event.
eventType
- The name of the event.public String getEventType()
The name of the event.
public Event withEventType(String eventType)
The name of the event.
eventType
- The name of the event.public Map<String,Double> getMetrics()
One or more custom metrics that are associated with the event.
public void setMetrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
metrics
- One or more custom metrics that are associated with the event.public Event withMetrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
metrics
- One or more custom metrics that are associated with the event.public Event clearMetricsEntries()
public void setSdkName(String sdkName)
The name of the SDK that's being used to record the event.
sdkName
- The name of the SDK that's being used to record the event.public String getSdkName()
The name of the SDK that's being used to record the event.
public Event withSdkName(String sdkName)
The name of the SDK that's being used to record the event.
sdkName
- The name of the SDK that's being used to record the event.public void setSession(Session session)
Information about the session in which the event occurred.
session
- Information about the session in which the event occurred.public Session getSession()
Information about the session in which the event occurred.
public Event withSession(Session session)
Information about the session in which the event occurred.
session
- Information about the session in which the event occurred.public void setTimestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
timestamp
- The date and time, in ISO 8601 format, when the event occurred.public String getTimestamp()
The date and time, in ISO 8601 format, when the event occurred.
public Event withTimestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
timestamp
- The date and time, in ISO 8601 format, when the event occurred.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.