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 Details

    • memoryId

      Event.Builder memoryId(String 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

      Event.Builder actorId(String 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

      Event.Builder sessionId(String 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

      Event.Builder eventId(String 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

      Event.Builder eventTimestamp(Instant 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

      Event.Builder payload(PayloadType... 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 the PayloadType.Builder avoiding the need to create one manually via PayloadType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to payload(List<PayloadType>).

      Parameters:
      payload - a consumer that will call methods on PayloadType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • branch

      Event.Builder branch(Branch 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

      default Event.Builder branch(Consumer<Branch.Builder> branch)

      The branch information for the event.

      This is a convenience method that creates an instance of the Branch.Builder avoiding the need to create one manually via Branch.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to branch(Branch).

      Parameters:
      branch - a consumer that will call methods on Branch.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: