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:
  • Field Details

  • Constructor Details

    • RebalancerEventRun

      public RebalancerEventRun()
  • Method Details

    • accountId

      public RebalancerEventRun accountId(@Nonnull UUID accountId)
    • getAccountId

      @Nonnull public UUID getAccountId()
      Get accountId
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nonnull UUID accountId)
    • canceledAt

      public RebalancerEventRun canceledAt(@Nullable OffsetDateTime canceledAt)
    • getCanceledAt

      @Nullable public OffsetDateTime getCanceledAt()
      Get canceledAt
      Returns:
      canceledAt
    • setCanceledAt

      public void setCanceledAt(@Nullable OffsetDateTime canceledAt)
    • completedAt

      public RebalancerEventRun completedAt(@Nullable OffsetDateTime completedAt)
    • getCompletedAt

      @Nullable public OffsetDateTime getCompletedAt()
      Get completedAt
      Returns:
      completedAt
    • setCompletedAt

      public void setCompletedAt(@Nullable OffsetDateTime completedAt)
    • createdAt

      public RebalancerEventRun createdAt(@Nonnull OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
    • id

      public RebalancerEventRun id(@Nonnull UUID id)
    • getId

      @Nonnull public UUID getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nonnull UUID id)
    • initiatedFrom

      public RebalancerEventRun initiatedFrom(@Nonnull PortfolioRunInitiator initiatedFrom)
    • getInitiatedFrom

      @Nonnull public PortfolioRunInitiator getInitiatedFrom()
      Get initiatedFrom
      Returns:
      initiatedFrom
    • setInitiatedFrom

      public void setInitiatedFrom(@Nonnull PortfolioRunInitiator initiatedFrom)
    • portfolioId

      public RebalancerEventRun portfolioId(@Nonnull UUID portfolioId)
    • getPortfolioId

      @Nonnull public UUID getPortfolioId()
      Get portfolioId
      Returns:
      portfolioId
    • setPortfolioId

      public void setPortfolioId(@Nonnull UUID portfolioId)
    • reason

      public RebalancerEventRun reason(@Nullable String reason)
    • getReason

      @Nullable public String getReason()
      Get reason
      Returns:
      reason
    • setReason

      public void setReason(@Nullable String reason)
    • status

      public RebalancerEventRun status(@Nonnull RebalancerEventRun.StatusEnum status)
    • getStatus

      @Nonnull public RebalancerEventRun.StatusEnum 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

      public void setStatus(@Nonnull RebalancerEventRun.StatusEnum status)
    • type

      public RebalancerEventRun type(@Nonnull PortfolioRunType type)
    • getType

      @Nonnull public PortfolioRunType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nonnull PortfolioRunType type)
    • updatedAt

      public RebalancerEventRun updatedAt(@Nonnull OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nonnull public OffsetDateTime getUpdatedAt()
      Get updatedAt
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nonnull OffsetDateTime updatedAt)
    • putAdditionalProperty

      public RebalancerEventRun putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the RebalancerEventRun instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static RebalancerEventRun fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of RebalancerEventRun to an JSON string
      Returns:
      JSON string