Class Event.Builder

java.lang.Object
dev.getelements.elements.sdk.Event.Builder
Enclosing interface:
Event

public static class Event.Builder extends Object
Utility class to build Event instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • named

      public Event.Builder named(String name)
      Specifies the Event name.
      Parameters:
      name - the name of the event
      Returns:
      this instance
    • argument

      public Event.Builder argument(Object argument)
      Appends an argument to the Event.
      Parameters:
      argument - the argument to append
      Returns:
      this instance
    • build

      public Event build()
      Builds the Event.
      Returns:
      the Event