Interface PutEventsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutEventsRequest.Builder,PutEventsRequest>,PersonalizeEventsRequest.Builder,SdkBuilder<PutEventsRequest.Builder,PutEventsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutEventsRequest
public static interface PutEventsRequest.Builder extends PersonalizeEventsRequest.Builder, SdkPojo, CopyableBuilder<PutEventsRequest.Builder,PutEventsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutEventsRequest.BuildereventList(Collection<Event> eventList)A list of event data from the session.PutEventsRequest.BuildereventList(Consumer<Event.Builder>... eventList)A list of event data from the session.PutEventsRequest.BuildereventList(Event... eventList)A list of event data from the session.PutEventsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutEventsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutEventsRequest.BuildersessionId(String sessionId)The session ID associated with the user's visit.PutEventsRequest.BuildertrackingId(String trackingId)The tracking ID for the event.PutEventsRequest.BuilderuserId(String userId)The user associated with the event.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.personalizeevents.model.PersonalizeEventsRequest.Builder
build
-
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
-
trackingId
PutEventsRequest.Builder trackingId(String trackingId)
The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.
- Parameters:
trackingId- The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
PutEventsRequest.Builder userId(String userId)
The user associated with the event.
- Parameters:
userId- The user associated with the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
PutEventsRequest.Builder sessionId(String sessionId)
The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording item interaction events.
- Parameters:
sessionId- The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording item interaction events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventList
PutEventsRequest.Builder eventList(Collection<Event> eventList)
A list of event data from the session.
- Parameters:
eventList- A list of event data from the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventList
PutEventsRequest.Builder eventList(Event... eventList)
A list of event data from the session.
- Parameters:
eventList- A list of event data from the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventList
PutEventsRequest.Builder eventList(Consumer<Event.Builder>... eventList)
A list of event data from the session.
This is a convenience method that creates an instance of theEvent.Builderavoiding the need to create one manually viaEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventList(List.) - Parameters:
eventList- a consumer that will call methods onEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#eventList(java.util.Collection)
-
overrideConfiguration
PutEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-