public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
| Modifier and Type | Method and Description |
|---|---|
Event.Builder |
attributes(Map<String,String> attributes)
Custom attributes that are associated with the event you're adding or updating.
|
Event.Builder |
clientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event.Builder |
eventType(String eventType)
The name of the custom event that you're recording.
|
Event.Builder |
metrics(Map<String,Double> metrics)
Custom metrics related to the event.
|
default Event.Builder |
session(Consumer<Session.Builder> session)
Information about the session in which the event occurred.
|
Event.Builder |
session(Session session)
Information about the session in which the event occurred.
|
Event.Builder |
timestamp(String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
copyapplyMutation, buildEvent.Builder attributes(Map<String,String> attributes)
attributes - Custom attributes that are associated with the event you're adding or updating.Event.Builder clientSdkVersion(String clientSdkVersion)
clientSdkVersion - The version of the SDK that's running on the client device.Event.Builder eventType(String eventType)
eventType - The name of the custom event that you're recording.Event.Builder metrics(Map<String,Double> metrics)
metrics - Custom metrics related to the event.Event.Builder session(Session session)
session - Information about the session in which the event occurred.default Event.Builder session(Consumer<Session.Builder> session)
Session.Builder avoiding the need to create one manually via Session.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to session(Session).session - a consumer that will call methods on Session.Buildersession(Session)Event.Builder timestamp(String timestamp)
timestamp - The date and time when the event occurred, in ISO 8601 format.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.