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 ID of the actor the event belongs to.The event's ID.eventTimestamp(Instant eventTimestamp) The time the event occurred.The event's metadata tags, as supplied toCreateEvent.default Event.Builderpayload(Consumer<EventPayload.Builder> payload) The event's content, as submitted toCreateEvent.payload(EventPayload payload) The event's content, as submitted toCreateEvent.The ID of the session the event belongs to.The ID of the space.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventId
The event's ID.
- Parameters:
eventId- The event's ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spaceId
The ID of the space.
- Parameters:
spaceId- The ID of the space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actorId
The ID of the actor the event belongs to.
- Parameters:
actorId- The ID of the actor the event belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The ID of the session the event belongs to.
- Parameters:
sessionId- The ID of the session the event belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The event's content, as submitted to
CreateEvent.- Parameters:
payload- The event's content, as submitted toCreateEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The event's content, as submitted to
This is a convenience method that creates an instance of theCreateEvent.EventPayload.Builderavoiding the need to create one manually viaEventPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topayload(EventPayload).- Parameters:
payload- a consumer that will call methods onEventPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The event's metadata tags, as supplied to
CreateEvent. May be empty.- Parameters:
metadata- The event's metadata tags, as supplied toCreateEvent. May be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTimestamp
The time the event occurred.
- Parameters:
eventTimestamp- The time the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-