Class TransferStatusEvent

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

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

  • Constructor Details

    • TransferStatusEvent

      public TransferStatusEvent()
  • Method Details

    • accountId

      public TransferStatusEvent accountId(@Nonnull UUID accountId)
    • getAccountId

      @Nonnull public UUID getAccountId()
      Account UUID
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nonnull UUID accountId)
    • at

      public TransferStatusEvent at(@Nonnull OffsetDateTime at)
    • getAt

      @Nonnull public OffsetDateTime getAt()
      Timestamp of when the transfer status changed
      Returns:
      at
    • setAt

      public void setAt(@Nonnull OffsetDateTime at)
    • eventId

      public TransferStatusEvent 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 TransferStatusEvent eventUlid(@Nonnull String eventUlid)
    • getEventUlid

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

      public void setEventUlid(@Nonnull String eventUlid)
    • statusFrom

      public TransferStatusEvent statusFrom(@Nonnull TransferStatus statusFrom)
    • getStatusFrom

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

      public void setStatusFrom(@Nonnull TransferStatus statusFrom)
    • statusTo

      public TransferStatusEvent statusTo(@Nonnull TransferStatus statusTo)
    • getStatusTo

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

      public void setStatusTo(@Nonnull TransferStatus statusTo)
    • transferId

      public TransferStatusEvent transferId(@Nonnull UUID transferId)
    • getTransferId

      @Nonnull public UUID getTransferId()
      Transfer UUID
      Returns:
      transferId
    • setTransferId

      public void setTransferId(@Nonnull UUID transferId)
    • putAdditionalProperty

      public TransferStatusEvent 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 TransferStatusEvent 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 TransferStatusEvent
    • fromJson

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

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