Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
-
Method Summary
Modifier and TypeMethodDescriptionappPackageName
(String appPackageName) The package name of the app that's recording the event.The title of the app that's recording the event.appVersionCode
(String appVersionCode) The version number of the app that's recording the event.attributes
(Map<String, String> attributes) One or more custom attributes that are associated with the event.clientSdkVersion
(String clientSdkVersion) The version of the SDK that's running on the client device.The name of the event.One or more custom metrics that are associated with the event.The name of the SDK that's being used to record the event.default Event.Builder
session
(Consumer<Session.Builder> session) Information about the session in which the event occurred.Information about the session in which the event occurred.The date and time, in ISO 8601 format, when the event occurred.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
appPackageName
The package name of the app that's recording the event.
- Parameters:
appPackageName
- The package name of the app that's recording the event.- Returns:
- 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.
- Parameters:
appTitle
- The title of the app that's recording the event.- Returns:
- 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.
- Parameters:
appVersionCode
- The version number of the app that's recording the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
One or more custom attributes that are associated with the event.
- Parameters:
attributes
- One or more custom attributes that are associated with the event.- Returns:
- 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.
- Parameters:
clientSdkVersion
- The version of the SDK that's running on the client device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The name of the event.
- Parameters:
eventType
- The name of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
One or more custom metrics that are associated with the event.
- Parameters:
metrics
- One or more custom metrics that are associated with the event.- Returns:
- 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.
- Parameters:
sdkName
- The name of the SDK that's being used to record the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
session
Information about the session in which the event occurred.
- Parameters:
session
- Information about the session in which the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
session
Information about the session in which the event occurred.
This is a convenience method that creates an instance of theSession.Builder
avoiding the need to create one manually viaSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosession(Session)
.- Parameters:
session
- a consumer that will call methods onSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timestamp
The date and time, in ISO 8601 format, when the event occurred.
- Parameters:
timestamp
- The date and time, in ISO 8601 format, when the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-