Class PostV1RebalancingPortfoliosRequest

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

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

  • Constructor Details

    • PostV1RebalancingPortfoliosRequest

      public PostV1RebalancingPortfoliosRequest()
  • Method Details

    • cooldownDays

      public PostV1RebalancingPortfoliosRequest cooldownDays(@Nullable Integer cooldownDays)
    • getCooldownDays

      @Nullable 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(@Nullable Integer cooldownDays)
    • description

      public PostV1RebalancingPortfoliosRequest description(@Nullable String description)
    • getDescription

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

      public void setDescription(@Nullable String description)
    • name

      public PostV1RebalancingPortfoliosRequest name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • rebalanceConditions

      public PostV1RebalancingPortfoliosRequest rebalanceConditions(@Nullable List<RebalancingConditions> rebalanceConditions)
    • addRebalanceConditionsItem

      public PostV1RebalancingPortfoliosRequest addRebalanceConditionsItem(RebalancingConditions rebalanceConditionsItem)
    • getRebalanceConditions

      @Nullable public List<RebalancingConditions> getRebalanceConditions()
      Rebalancing conditions for portfolio
      Returns:
      rebalanceConditions
    • setRebalanceConditions

      public void setRebalanceConditions(@Nullable List<RebalancingConditions> rebalanceConditions)
    • weights

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

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

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

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