Class JournalStatusEvent

java.lang.Object
markets.alpaca.client.openapi.broker.model.JournalStatusEvent
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class JournalStatusEvent extends Object implements Serializable
Represents a change in a Journal's status, sent over the events streaming api.
See Also:
  • Field Details

  • Constructor Details

    • JournalStatusEvent

      public JournalStatusEvent()
  • Method Details

    • at

      public JournalStatusEvent at(@Nonnull OffsetDateTime at)
    • getAt

      @Nonnull public OffsetDateTime getAt()
      Timestamp of event
      Returns:
      at
    • setAt

      public void setAt(@Nonnull OffsetDateTime at)
    • entryType

      public JournalStatusEvent entryType(@Nonnull JournalEntryType entryType)
    • getEntryType

      @Nonnull public JournalEntryType getEntryType()
      Get entryType
      Returns:
      entryType
    • setEntryType

      public void setEntryType(@Nonnull JournalEntryType entryType)
    • eventId

      public JournalStatusEvent eventId(@Nullable Integer eventId)
    • getEventId

      @Nullable public Integer getEventId()
      Monotonically increasing 64-bit integer not available to new partners, and for backward compatibility purposes only; use `event_ulid` as the stable identifier where possible
      Returns:
      eventId
    • setEventId

      public void setEventId(@Nullable Integer eventId)
    • eventUlid

      public JournalStatusEvent eventUlid(@Nonnull String eventUlid)
    • getEventUlid

      @Nonnull public String getEventUlid()
      lexically sortable, monotonically increasing character array
      Returns:
      eventUlid
    • setEventUlid

      public void setEventUlid(@Nonnull String eventUlid)
    • journalId

      public JournalStatusEvent journalId(@Nonnull UUID journalId)
    • getJournalId

      @Nonnull public UUID getJournalId()
      The UUID of the related Journal
      Returns:
      journalId
    • setJournalId

      public void setJournalId(@Nonnull UUID journalId)
    • statusFrom

      public JournalStatusEvent statusFrom(@Nonnull JournalStatus statusFrom)
    • getStatusFrom

      @Nonnull public JournalStatus getStatusFrom()
      Get statusFrom
      Returns:
      statusFrom
    • setStatusFrom

      public void setStatusFrom(@Nonnull JournalStatus statusFrom)
    • statusTo

      public JournalStatusEvent statusTo(@Nonnull JournalStatus statusTo)
    • getStatusTo

      @Nonnull public JournalStatus getStatusTo()
      Get statusTo
      Returns:
      statusTo
    • setStatusTo

      public void setStatusTo(@Nonnull JournalStatus statusTo)
    • putAdditionalProperty

      public JournalStatusEvent putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the JournalStatusEvent instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to JournalStatusEvent
    • fromJson

      public static JournalStatusEvent fromJson(String jsonString) throws IOException
      Create an instance of JournalStatusEvent given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of JournalStatusEvent
      Throws:
      IOException - if the JSON string is invalid with respect to JournalStatusEvent
    • toJson

      public String toJson()
      Convert an instance of JournalStatusEvent to an JSON string
      Returns:
      JSON string