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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRebalanceConditionsItem(RebalancingConditions rebalanceConditionsItem) addWeightsItem(PortfolioWeights weightsItem) cooldownDays(Integer cooldownDays) description(String description) booleanCreate an instance of PostV1RebalancingPortfoliosRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalanceText to describe portfoliogetName()Name of portfolioRebalancing conditions for portfolioWeight configuration to portfolio.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rebalanceConditions(List<RebalancingConditions> rebalanceConditions) voidsetCooldownDays(Integer cooldownDays) voidsetDescription(String description) voidvoidsetRebalanceConditions(List<RebalancingConditions> rebalanceConditions) voidsetWeights(List<PortfolioWeights> weights) toJson()Convert an instance of PostV1RebalancingPortfoliosRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundweights(List<PortfolioWeights> weights)
-
Field Details
-
SERIALIZED_NAME_COOLDOWN_DAYS
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REBALANCE_CONDITIONS
- See Also:
-
SERIALIZED_NAME_WEIGHTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PostV1RebalancingPortfoliosRequest
public PostV1RebalancingPortfoliosRequest()
-
-
Method Details
-
cooldownDays
-
getCooldownDays
Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalance- Returns:
- cooldownDays
-
setCooldownDays
-
description
-
getDescription
Text to describe portfolio- Returns:
- description
-
setDescription
-
name
-
getName
Name of portfolio- Returns:
- name
-
setName
-
rebalanceConditions
public PostV1RebalancingPortfoliosRequest rebalanceConditions(@Nullable List<RebalancingConditions> rebalanceConditions) -
addRebalanceConditionsItem
public PostV1RebalancingPortfoliosRequest addRebalanceConditionsItem(RebalancingConditions rebalanceConditionsItem) -
getRebalanceConditions
Rebalancing conditions for portfolio- Returns:
- rebalanceConditions
-
setRebalanceConditions
-
weights
-
addWeightsItem
-
getWeights
Weight configuration to portfolio. Sum of \"percent\" values in the weights array must be 100.00- Returns:
- weights
-
setWeights
-
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 PostV1RebalancingPortfoliosRequest 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 PostV1RebalancingPortfoliosRequest
-
fromJson
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
Convert an instance of PostV1RebalancingPortfoliosRequest to an JSON string- Returns:
- JSON string
-