Class RebalancerRunCreatedEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerRunCreatedEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerRunCreatedEvent
extends Object
implements Serializable
Emitted when a portfolio run is created. `run` is the full run snapshot, without order lists.
- 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) booleaneventType(RebalancerRunCreatedEvent.EventTypeEnum eventType) static RebalancerRunCreatedEventCreate an instance of RebalancerRunCreatedEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Business time of the run creation.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 RebalancerRunCreatedEvent 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
-
RebalancerRunCreatedEvent
public RebalancerRunCreatedEvent()
-
-
Method Details
-
at
-
getAt
Business time of the run creation.- Returns:
- at
-
setAt
-
eventId
-
getEventId
Get eventId- Returns:
- eventId
-
setEventId
-
eventType
public RebalancerRunCreatedEvent eventType(@Nonnull RebalancerRunCreatedEvent.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 RebalancerRunCreatedEvent 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 RebalancerRunCreatedEvent
-
fromJson
Create an instance of RebalancerRunCreatedEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerRunCreatedEvent
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerRunCreatedEvent
-
toJson
Convert an instance of RebalancerRunCreatedEvent to an JSON string- Returns:
- JSON string
-