@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Event.Builder,Event>
Specifies information about an event that reports data to Amazon Pinpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Event.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
appPackageName()
The package name of the app that's recording the event.
|
String |
appTitle()
The title of the app that's recording the event.
|
String |
appVersionCode()
The version number of the app that's recording the event.
|
Map<String,String> |
attributes()
One or more custom attributes that are associated with the event.
|
static Event.Builder |
builder() |
String |
clientSdkVersion()
The version of the SDK that's running on the client device.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventType()
The name of the event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,Double> |
metrics()
One or more custom metrics that are associated with the event.
|
List<SdkField<?>> |
sdkFields() |
String |
sdkName()
The name of the SDK that's being used to record the event.
|
static Class<? extends Event.Builder> |
serializableBuilderClass() |
Session |
session()
Information about the session in which the event occurred.
|
String |
timestamp()
The date and time, in ISO 8601 format, when the event occurred.
|
Event.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String appPackageName()
The package name of the app that's recording the event.
public String appTitle()
The title of the app that's recording the event.
public String appVersionCode()
The version number of the app that's recording the event.
public Map<String,String> attributes()
One or more custom attributes that are associated with the event.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String clientSdkVersion()
The version of the SDK that's running on the client device.
public String eventType()
The name of the event.
public Map<String,Double> metrics()
One or more custom metrics that are associated with the event.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String sdkName()
The name of the SDK that's being used to record the event.
public Session session()
Information about the session in which the event occurred.
public String timestamp()
The date and time, in ISO 8601 format, when the event occurred.
public Event.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Event.Builder,Event>public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.