Interface Event.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Event.Builder,Event>,SdkBuilder<Event.Builder,Event>,SdkPojo
- Enclosing class:
- Event
public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Event.BuilderappPackageName(String appPackageName)The package name of the app that's recording the event.Event.BuilderappTitle(String appTitle)The title of the app that's recording the event.Event.BuilderappVersionCode(String appVersionCode)The version number of the app that's recording the event.Event.Builderattributes(Map<String,String> attributes)One or more custom attributes that are associated with the event.Event.BuilderclientSdkVersion(String clientSdkVersion)The version of the SDK that's running on the client device.Event.BuildereventType(String eventType)The name of the event.Event.Buildermetrics(Map<String,Double> metrics)One or more custom metrics that are associated with the event.Event.BuildersdkName(String sdkName)The name of the SDK that's being used to record the event.default Event.Buildersession(Consumer<Session.Builder> session)Information about the session in which the event occurred.Event.Buildersession(Session session)Information about the session in which the event occurred.Event.Buildertimestamp(String timestamp)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 Detail
-
appPackageName
Event.Builder appPackageName(String 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
Event.Builder appTitle(String 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
Event.Builder appVersionCode(String 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
Event.Builder attributes(Map<String,String> 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
Event.Builder clientSdkVersion(String 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
Event.Builder eventType(String 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
Event.Builder metrics(Map<String,Double> 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
Event.Builder sdkName(String 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
Event.Builder session(Session 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
default Event.Builder session(Consumer<Session.Builder> session)
Information about the session in which the event occurred.
This is a convenience method that creates an instance of theSession.Builderavoiding the need to create one manually viaSession.builder().When the
Consumercompletes,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:
session(Session)
-
timestamp
Event.Builder timestamp(String 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.
-
-