Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
@Mutable
@NotThreadSafe
public static interface Event.Builder
extends SdkPojo, CopyableBuilder<Event.Builder,Event>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the actor associated with the event.default Event.Builder
branch
(Consumer<Branch.Builder> branch) The branch information for the event.The branch information for the event.The unique identifier of the event.eventTimestamp
(Instant eventTimestamp) The timestamp when the event occurred.The identifier of the memory store containing the event.payload
(Collection<PayloadType> payload) The content payload of the event.payload
(Consumer<PayloadType.Builder>... payload) The content payload of the event.payload
(PayloadType... payload) The content payload of the event.The identifier of the session containing the event.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, sdkFieldNameToField, sdkFields
-
Method Details
-
memoryId
The identifier of the memory store containing the event.
- Parameters:
memoryId
- The identifier of the memory store containing the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actorId
The identifier of the actor associated with the event.
- Parameters:
actorId
- The identifier of the actor associated with the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session containing the event.
- Parameters:
sessionId
- The identifier of the session containing the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
The unique identifier of the event.
- Parameters:
eventId
- The unique identifier of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTimestamp
The timestamp when the event occurred.
- Parameters:
eventTimestamp
- The timestamp when the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event.
- Parameters:
payload
- The content payload of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event.
- Parameters:
payload
- The content payload of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event.
This is a convenience method that creates an instance of thePayloadType.Builder
avoiding the need to create one manually viaPayloadType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topayload(List<PayloadType>)
.- Parameters:
payload
- a consumer that will call methods onPayloadType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
branch
The branch information for the event.
- Parameters:
branch
- The branch information for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branch
The branch information for the event.
This is a convenience method that creates an instance of theBranch.Builder
avoiding the need to create one manually viaBranch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobranch(Branch)
.- Parameters:
branch
- a consumer that will call methods onBranch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-