Class RebalancerRunStatusChangedEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerRunStatusChangedEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerRunStatusChangedEvent
extends Object
implements Serializable
Emitted when a portfolio run status changes. `run` is the same full snapshot sent on `run.created`.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets eventType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) booleanCreate an instance of RebalancerRunStatusChangedEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Business time of the run status transition.Get eventIdGet eventTypegetRun()Get runinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.run(RebalancerEventRun run) voidsetAt(OffsetDateTime at) voidsetEventId(String eventId) voidvoidsetRun(RebalancerEventRun run) toJson()Convert an instance of RebalancerRunStatusChangedEvent 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_EVENT_ID
- See Also:
-
SERIALIZED_NAME_EVENT_TYPE
- See Also:
-
SERIALIZED_NAME_RUN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RebalancerRunStatusChangedEvent
public RebalancerRunStatusChangedEvent()
-
-
Method Details
-
at
-
getAt
Business time of the run status transition.- Returns:
- at
-
setAt
-
eventId
-
getEventId
Get eventId- Returns:
- eventId
-
setEventId
-
eventType
public RebalancerRunStatusChangedEvent eventType(@Nonnull RebalancerRunStatusChangedEvent.EventTypeEnum eventType) -
getEventType
Get eventType- Returns:
- eventType
-
setEventType
-
run
-
getRun
Get run- Returns:
- run
-
setRun
-
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 RebalancerRunStatusChangedEvent 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 RebalancerRunStatusChangedEvent
-
fromJson
Create an instance of RebalancerRunStatusChangedEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerRunStatusChangedEvent
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerRunStatusChangedEvent
-
toJson
Convert an instance of RebalancerRunStatusChangedEvent to an JSON string- Returns:
- JSON string
-