Class JournalStatusEventV2
java.lang.Object
markets.alpaca.client.openapi.broker.model.JournalStatusEventV2
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class JournalStatusEventV2
extends Object
implements Serializable
Represents a change in a Journal's status, sent over the events streaming api.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of idempotency key -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) batchErrorMessage(String batchErrorMessage) description(String description) entryType(JournalEntryType entryType) booleanstatic JournalStatusEventV2Create an instance of JournalStatusEventV2 given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp of eventIf journal submitted in batch (that is, idempotency_key_type is batch), this is the error message of the batch journal execution.The description of the journal event when submittedGet entryTypelexically sortable, monotonically increasing character arrayThe idempotency key of the journal eventThe type of idempotency keyThe UUID of the related JournalGet statusFromGet statusTointhashCode()idempotencyKey(UUID idempotencyKey) idempotencyKeyType(JournalStatusEventV2.IdempotencyKeyTypeEnum idempotencyKeyType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAt(OffsetDateTime at) voidsetBatchErrorMessage(String batchErrorMessage) voidsetDescription(String description) voidsetEntryType(JournalEntryType entryType) voidsetEventId(String eventId) voidsetIdempotencyKey(UUID idempotencyKey) voidsetIdempotencyKeyType(JournalStatusEventV2.IdempotencyKeyTypeEnum idempotencyKeyType) voidsetJournalId(UUID journalId) voidsetStatusFrom(JournalStatus statusFrom) voidsetStatusTo(JournalStatus statusTo) statusFrom(JournalStatus statusFrom) statusTo(JournalStatus statusTo) toJson()Convert an instance of JournalStatusEventV2 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_BATCH_ERROR_MESSAGE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_IDEMPOTENCY_KEY
- See Also:
-
SERIALIZED_NAME_IDEMPOTENCY_KEY_TYPE
- See Also:
-
SERIALIZED_NAME_JOURNAL_ID
- See Also:
-
SERIALIZED_NAME_STATUS_FROM
- See Also:
-
SERIALIZED_NAME_STATUS_TO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
JournalStatusEventV2
public JournalStatusEventV2()
-
-
Method Details
-
at
-
getAt
Timestamp of event- Returns:
- at
-
setAt
-
batchErrorMessage
-
getBatchErrorMessage
If journal submitted in batch (that is, idempotency_key_type is batch), this is the error message of the batch journal execution.- Returns:
- batchErrorMessage
-
setBatchErrorMessage
-
description
-
getDescription
The description of the journal event when submitted- Returns:
- description
-
setDescription
-
entryType
-
getEntryType
Get entryType- Returns:
- entryType
-
setEntryType
-
eventId
-
getEventId
lexically sortable, monotonically increasing character array- Returns:
- eventId
-
setEventId
-
idempotencyKey
-
getIdempotencyKey
The idempotency key of the journal event- Returns:
- idempotencyKey
-
setIdempotencyKey
-
idempotencyKeyType
public JournalStatusEventV2 idempotencyKeyType(@Nullable JournalStatusEventV2.IdempotencyKeyTypeEnum idempotencyKeyType) -
getIdempotencyKeyType
The type of idempotency key- Returns:
- idempotencyKeyType
-
setIdempotencyKeyType
public void setIdempotencyKeyType(@Nullable JournalStatusEventV2.IdempotencyKeyTypeEnum idempotencyKeyType) -
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 JournalStatusEventV2 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 JournalStatusEventV2
-
fromJson
Create an instance of JournalStatusEventV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JournalStatusEventV2
- Throws:
IOException- if the JSON string is invalid with respect to JournalStatusEventV2
-
toJson
Convert an instance of JournalStatusEventV2 to an JSON string- Returns:
- JSON string
-