@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) |
boolean |
hasAttributes()
Returns true if the Attributes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasMetrics()
Returns true if the Metrics property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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 final String appPackageName()
The package name of the app that's recording the event.
public final String appTitle()
The title of the app that's recording the event.
public final String appVersionCode()
The version number of the app that's recording the event.
public final boolean hasAttributes()
public final 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.
You can use hasAttributes() to see if a value was sent in this field.
public final String clientSdkVersion()
The version of the SDK that's running on the client device.
public final String eventType()
The name of the event.
public final boolean hasMetrics()
public final 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.
You can use hasMetrics() to see if a value was sent in this field.
public final String sdkName()
The name of the SDK that's being used to record the event.
public final Session session()
Information about the session in which the event occurred.
public final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.