Class RebalancerEventRun
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerEventRun
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerEventRun
extends Object
implements Serializable
Full run snapshot sent on `run.created` and `run.status_changed`. Order lists are omitted; read them from `GET /v1/rebalancing/runs/{run_id}`.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumRun status delivered on the rebalancer stream. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanceledAt(OffsetDateTime canceledAt) completedAt(OffsetDateTime completedAt) createdAt(OffsetDateTime createdAt) booleanstatic RebalancerEventRunCreate an instance of RebalancerEventRun given an JSON stringGet accountIdReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get canceledAtGet completedAtGet createdAtgetId()Get idGet initiatedFromGet portfolioIdGet reasonRun status delivered on the rebalancer stream.getType()Get typeGet updatedAtinthashCode()initiatedFrom(PortfolioRunInitiator initiatedFrom) portfolioId(UUID portfolioId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(UUID accountId) voidsetCanceledAt(OffsetDateTime canceledAt) voidsetCompletedAt(OffsetDateTime completedAt) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetInitiatedFrom(PortfolioRunInitiator initiatedFrom) voidsetPortfolioId(UUID portfolioId) voidvoidvoidsetType(PortfolioRunType type) voidsetUpdatedAt(OffsetDateTime updatedAt) status(RebalancerEventRun.StatusEnum status) toJson()Convert an instance of RebalancerEventRun to an JSON stringtoString()type(PortfolioRunType type) updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CANCELED_AT
- See Also:
-
SERIALIZED_NAME_COMPLETED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INITIATED_FROM
- See Also:
-
SERIALIZED_NAME_PORTFOLIO_ID
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RebalancerEventRun
public RebalancerEventRun()
-
-
Method Details
-
accountId
-
getAccountId
Get accountId- Returns:
- accountId
-
setAccountId
-
canceledAt
-
getCanceledAt
Get canceledAt- Returns:
- canceledAt
-
setCanceledAt
-
completedAt
-
getCompletedAt
Get completedAt- Returns:
- completedAt
-
setCompletedAt
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Get id- Returns:
- id
-
setId
-
initiatedFrom
-
getInitiatedFrom
Get initiatedFrom- Returns:
- initiatedFrom
-
setInitiatedFrom
-
portfolioId
-
getPortfolioId
Get portfolioId- Returns:
- portfolioId
-
setPortfolioId
-
reason
-
getReason
Get reason- Returns:
- reason
-
setReason
-
status
-
getStatus
Run status delivered on the rebalancer stream. `CANCELED_MID_RUN` is a REST portfolio-run status and is not sent on this stream.- Returns:
- status
-
setStatus
-
type
-
getType
Get type- Returns:
- type
-
setType
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
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 RebalancerEventRun 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 RebalancerEventRun
-
fromJson
Create an instance of RebalancerEventRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerEventRun
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerEventRun
-
toJson
Convert an instance of RebalancerEventRun to an JSON string- Returns:
- JSON string
-