java.lang.Object
markets.alpaca.client.openapi.broker.model.Portfolio
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class Portfolio extends Object implements Serializable
Portfolio
See Also:
  • Field Details

  • Constructor Details

    • Portfolio

      public Portfolio()
  • Method Details

    • cooldownDays

      public Portfolio cooldownDays(@Nonnull Integer cooldownDays)
    • getCooldownDays

      @Nonnull public Integer getCooldownDays()
      Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalance
      Returns:
      cooldownDays
    • setCooldownDays

      public void setCooldownDays(@Nonnull Integer cooldownDays)
    • createdAt

      public Portfolio createdAt(@Nullable String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      Portfolio creation timestamp
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable String createdAt)
    • description

      public Portfolio description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Text to describe portfolio
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • id

      public Portfolio id(@Nullable String id)
    • getId

      @Nullable public String getId()
      Portfolio ID
      Returns:
      id
    • setId

      public void setId(@Nullable String id)
    • name

      public Portfolio name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name of portfolio
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • rebalancingConditions

      public Portfolio rebalancingConditions(@Nullable String rebalancingConditions)
    • getRebalancingConditions

      @Nullable public String getRebalancingConditions()
      Rebalancing conditions for portfolio
      Returns:
      rebalancingConditions
    • setRebalancingConditions

      public void setRebalancingConditions(@Nullable String rebalancingConditions)
    • status

      public Portfolio status(@Nullable Portfolio.StatusEnum status)
    • getStatus

      @Nullable public Portfolio.StatusEnum getStatus()
      Current status of portfolio
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable Portfolio.StatusEnum status)
    • updatedAt

      public Portfolio updatedAt(@Nullable String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      Portfolio updated timestamp
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable String updatedAt)
    • weights

      public Portfolio weights(@Nullable List<PortfolioWeights> weights)
    • addWeightsItem

      public Portfolio addWeightsItem(PortfolioWeights weightsItem)
    • getWeights

      @Nullable public List<PortfolioWeights> getWeights()
      Weight configuration to portfolio. Sum of \"percent\" values in the weights array must be 100.00
      Returns:
      weights
    • setWeights

      public void setWeights(@Nullable List<PortfolioWeights> weights)
    • putAdditionalProperty

      public Portfolio 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 Portfolio 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 Portfolio
    • fromJson

      public static Portfolio fromJson(String jsonString) throws IOException
      Create an instance of Portfolio given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Portfolio
      Throws:
      IOException - if the JSON string is invalid with respect to Portfolio
    • toJson

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