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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) entryType(JournalEntryType entryType) booleanstatic JournalStatusEventCreate an instance of JournalStatusEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp of eventGet entryTypeMonotonically increasing 64-bit integer not available to new partners, and for backward compatibility purposes only; use `event_ulid` as the stable identifier where possiblelexically sortable, monotonically increasing character arrayThe UUID of the related JournalGet statusFromGet statusTointhashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAt(OffsetDateTime at) voidsetEntryType(JournalEntryType entryType) voidsetEventId(Integer eventId) voidsetEventUlid(String eventUlid) voidsetJournalId(UUID journalId) voidsetStatusFrom(JournalStatus statusFrom) voidsetStatusTo(JournalStatus statusTo) statusFrom(JournalStatus statusFrom) statusTo(JournalStatus statusTo) toJson()Convert an instance of JournalStatusEvent to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_EVENT_ULID
- See Also:
-
SERIALIZED_NAME_JOURNAL_ID
- See Also:
-
SERIALIZED_NAME_STATUS_FROM
- See Also:
-
SERIALIZED_NAME_STATUS_TO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
JournalStatusEvent
public JournalStatusEvent()
-
-
Method Details
-
at
-
getAt
Timestamp of event- Returns:
- at
-
setAt
-
entryType
-
getEntryType
Get entryType- Returns:
- entryType
-
setEntryType
-
eventId
-
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
-
eventUlid
-
getEventUlid
lexically sortable, monotonically increasing character array- Returns:
- eventUlid
-
setEventUlid
-
journalId
-
getJournalId
The UUID of the related Journal- Returns:
- journalId
-
setJournalId
-
statusFrom
-
getStatusFrom
Get statusFrom- Returns:
- statusFrom
-
setStatusFrom
-
statusTo
-
getStatusTo
Get statusTo- Returns:
- statusTo
-
setStatusTo
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the JournalStatusEvent instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of JournalStatusEvent to an JSON string- Returns:
- JSON string
-