Class RebalancerPortfolioStatusChangedEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerPortfolioStatusChangedEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerPortfolioStatusChangedEvent
extends Object
implements Serializable
Emitted when a portfolio status changes. `at` is the business time of the transition.
- 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 RebalancerPortfolioStatusChangedEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Business time of the portfolio status transition.Get eventIdGet eventTypeGet portfoliointhashCode()portfolio(RebalancerEventPortfolio portfolio) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAt(OffsetDateTime at) voidsetEventId(String eventId) voidvoidsetPortfolio(RebalancerEventPortfolio portfolio) toJson()Convert an instance of RebalancerPortfolioStatusChangedEvent 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_PORTFOLIO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RebalancerPortfolioStatusChangedEvent
public RebalancerPortfolioStatusChangedEvent()
-
-
Method Details
-
at
-
getAt
Business time of the portfolio status transition.- Returns:
- at
-
setAt
-
eventId
-
getEventId
Get eventId- Returns:
- eventId
-
setEventId
-
eventType
public RebalancerPortfolioStatusChangedEvent eventType(@Nonnull RebalancerPortfolioStatusChangedEvent.EventTypeEnum eventType) -
getEventType
Get eventType- Returns:
- eventType
-
setEventType
-
portfolio
-
getPortfolio
Get portfolio- Returns:
- portfolio
-
setPortfolio
-
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 RebalancerPortfolioStatusChangedEvent 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 RebalancerPortfolioStatusChangedEvent
-
fromJson
Create an instance of RebalancerPortfolioStatusChangedEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerPortfolioStatusChangedEvent
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerPortfolioStatusChangedEvent
-
toJson
Convert an instance of RebalancerPortfolioStatusChangedEvent to an JSON string- Returns:
- JSON string
-