Class SystemEventV2
java.lang.Object
markets.alpaca.client.openapi.broker.model.SystemEventV2
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SystemEventV2
extends Object
implements Serializable
Represents that system event had occurred and sent over the events streaming api.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumthe machine readable type of the system event -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) description(String description) booleanstatic SystemEventV2Create an instance of SystemEventV2 given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp of the eventThe human readable description of the system eventlexically sortable, monotonically increasing character arraythe system date to which this system event belongs togetType()the machine readable type of the system eventinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAt(OffsetDateTime at) voidsetDescription(String description) voidsetEventId(String eventId) voidsetSystemDate(LocalDate systemDate) voidsystemDate(LocalDate systemDate) toJson()Convert an instance of SystemEventV2 to an JSON stringtoString()type(SystemEventV2.TypeEnum type) 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SystemEventV2
public SystemEventV2()
-
-
Method Details
-
at
-
getAt
Timestamp of the event- Returns:
- at
-
setAt
-
description
-
getDescription
The human readable description of the system event- Returns:
- description
-
setDescription
-
eventId
-
getEventId
lexically sortable, monotonically increasing character array- Returns:
- eventId
-
setEventId
-
systemDate
-
getSystemDate
the system date to which this system event belongs to- Returns:
- systemDate
-
setSystemDate
-
type
-
getType
the machine readable type of the system event- Returns:
- type
-
setType
-
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 SystemEventV2 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 SystemEventV2
-
fromJson
Create an instance of SystemEventV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SystemEventV2
- Throws:
IOException- if the JSON string is invalid with respect to SystemEventV2
-
toJson
Convert an instance of SystemEventV2 to an JSON string- Returns:
- JSON string
-