public class Event
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
addAttributesEntry(java.lang.String key,
java.lang.String value)
Custom attributes that are associated with the event you're adding or
updating.
|
Event |
addMetricsEntry(java.lang.String key,
java.lang.Double value)
Custom metrics related to the event.
|
Event |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Event |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAppPackageName()
The package name associated with the app that's recording the event.
|
java.lang.String |
getAppTitle()
The title of the app that's recording the event.
|
java.lang.String |
getAppVersionCode()
The version number of the app that's recording the event.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Custom attributes that are associated with the event you're adding or
updating.
|
java.lang.String |
getClientSdkVersion()
The version of the SDK that's running on the client device.
|
java.lang.String |
getEventType()
The name of the custom event that you're recording.
|
java.util.Map<java.lang.String,java.lang.Double> |
getMetrics()
Custom metrics related to the event.
|
java.lang.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.
|
java.lang.String |
getTimestamp()
The date and time when the event occurred, in ISO 8601 format.
|
int |
hashCode() |
void |
setAppPackageName(java.lang.String appPackageName)
The package name associated with the app that's recording the event.
|
void |
setAppTitle(java.lang.String appTitle)
The title of the app that's recording the event.
|
void |
setAppVersionCode(java.lang.String appVersionCode)
The version number of the app that's recording the event.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Custom attributes that are associated with the event you're adding or
updating.
|
void |
setClientSdkVersion(java.lang.String clientSdkVersion)
The version of the SDK that's running on the client device.
|
void |
setEventType(java.lang.String eventType)
The name of the custom event that you're recording.
|
void |
setMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics related to the event.
|
void |
setSdkName(java.lang.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(java.lang.String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withAppPackageName(java.lang.String appPackageName)
The package name associated with the app that's recording the event.
|
Event |
withAppTitle(java.lang.String appTitle)
The title of the app that's recording the event.
|
Event |
withAppVersionCode(java.lang.String appVersionCode)
The version number of the app that's recording the event.
|
Event |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Custom attributes that are associated with the event you're adding or
updating.
|
Event |
withClientSdkVersion(java.lang.String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event |
withEventType(java.lang.String eventType)
The name of the custom event that you're recording.
|
Event |
withMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Custom metrics related to the event.
|
Event |
withSdkName(java.lang.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(java.lang.String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
public java.lang.String getAppPackageName()
public void setAppPackageName(java.lang.String appPackageName)
appPackageName
- The package name associated with the app that's
recording the event.public Event withAppPackageName(java.lang.String appPackageName)
Returns a reference to this object so that method calls can be chained together.
appPackageName
- The package name associated with the app that's
recording the event.public java.lang.String getAppTitle()
public void setAppTitle(java.lang.String appTitle)
appTitle
- The title of the app that's recording the event.public Event withAppTitle(java.lang.String appTitle)
Returns a reference to this object so that method calls can be chained together.
appTitle
- The title of the app that's recording the event.public java.lang.String getAppVersionCode()
public void setAppVersionCode(java.lang.String appVersionCode)
appVersionCode
- The version number of the app that's recording the
event.public Event withAppVersionCode(java.lang.String appVersionCode)
Returns a reference to this object so that method calls can be chained together.
appVersionCode
- The version number of the app that's recording the
event.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- Custom attributes that are associated with the event
you're adding or updating.public Event withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- Custom attributes that are associated with the event
you're adding or updating.public Event addAttributesEntry(java.lang.String key, java.lang.String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into
Attributes.public Event clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getClientSdkVersion()
public void setClientSdkVersion(java.lang.String clientSdkVersion)
clientSdkVersion
- The version of the SDK that's running on the
client device.public Event withClientSdkVersion(java.lang.String clientSdkVersion)
Returns a reference to this object so that method calls can be chained together.
clientSdkVersion
- The version of the SDK that's running on the
client device.public java.lang.String getEventType()
public void setEventType(java.lang.String eventType)
eventType
- The name of the custom event that you're recording.public Event withEventType(java.lang.String eventType)
Returns a reference to this object so that method calls can be chained together.
eventType
- The name of the custom event that you're recording.public java.util.Map<java.lang.String,java.lang.Double> getMetrics()
public void setMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
metrics
- Custom metrics related to the event.public Event withMetrics(java.util.Map<java.lang.String,java.lang.Double> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics
- Custom metrics related to the event.public Event addMetricsEntry(java.lang.String key, java.lang.Double value)
The method adds a new key-value pair into Metrics parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Metrics.value
- The corresponding value of the entry to be added into
Metrics.public Event clearMetricsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getSdkName()
public void setSdkName(java.lang.String sdkName)
sdkName
- The name of the SDK that's being used to record the event.public Event withSdkName(java.lang.String sdkName)
Returns a reference to this object so that method calls can be chained together.
sdkName
- The name of the SDK that's being used to record the event.public Session getSession()
public void setSession(Session session)
session
- Information about the session in which the event occurred.public Event withSession(Session session)
Returns a reference to this object so that method calls can be chained together.
session
- Information about the session in which the event occurred.public java.lang.String getTimestamp()
public void setTimestamp(java.lang.String timestamp)
timestamp
- The date and time when the event occurred, in ISO 8601
format.public Event withTimestamp(java.lang.String timestamp)
Returns a reference to this object so that method calls can be chained together.
timestamp
- The date and time when the event occurred, in ISO 8601
format.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.