Class PatchV1RebalancingPortfoliosPortfolioIdRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.PatchV1RebalancingPortfoliosPortfolioIdRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class PatchV1RebalancingPortfoliosPortfolioIdRequest
extends Object
implements Serializable
PatchV1RebalancingPortfoliosPortfolioIdRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRebalanceConditionsItem(RebalancingConditions rebalanceConditionsItem) addWeightsItem(PortfolioWeightRequest weightsItem) cooldownDays(Integer cooldownDays) description(String description) booleanCreate an instance of PatchV1RebalancingPortfoliosPortfolioIdRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Used to update portfolio cooldown days.Used to update portfolio description.getName()Used to update portfolio name.Conditions that replace the portfolio's current rebalance conditions.Used to update portfolio weights.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<PortfolioWeightRequest> weights) toJson()Convert an instance of PatchV1RebalancingPortfoliosPortfolioIdRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundweights(List<PortfolioWeightRequest> 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
-
PatchV1RebalancingPortfoliosPortfolioIdRequest
public PatchV1RebalancingPortfoliosPortfolioIdRequest()
-
-
Method Details
-
cooldownDays
-
getCooldownDays
Used to update portfolio cooldown days.- Returns:
- cooldownDays
-
setCooldownDays
-
description
-
getDescription
Used to update portfolio description.- Returns:
- description
-
setDescription
-
name
-
getName
Used to update portfolio name.- Returns:
- name
-
setName
-
rebalanceConditions
public PatchV1RebalancingPortfoliosPortfolioIdRequest rebalanceConditions(@Nullable List<RebalancingConditions> rebalanceConditions) -
addRebalanceConditionsItem
public PatchV1RebalancingPortfoliosPortfolioIdRequest addRebalanceConditionsItem(RebalancingConditions rebalanceConditionsItem) -
getRebalanceConditions
Conditions that replace the portfolio's current rebalance conditions. Omit this field to leave the current conditions unchanged. An empty array removes every condition.- Returns:
- rebalanceConditions
-
setRebalanceConditions
-
weights
public PatchV1RebalancingPortfoliosPortfolioIdRequest weights(@Nullable List<PortfolioWeightRequest> weights) -
addWeightsItem
public PatchV1RebalancingPortfoliosPortfolioIdRequest addWeightsItem(PortfolioWeightRequest weightsItem) -
getWeights
Used to update portfolio weights.- Returns:
- weights
-
setWeights
-
putAdditionalProperty
public PatchV1RebalancingPortfoliosPortfolioIdRequest 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 propertyvalue- value of the property- Returns:
- the PatchV1RebalancingPortfoliosPortfolioIdRequest 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 PatchV1RebalancingPortfoliosPortfolioIdRequest
-
fromJson
public static PatchV1RebalancingPortfoliosPortfolioIdRequest fromJson(String jsonString) throws IOException Create an instance of PatchV1RebalancingPortfoliosPortfolioIdRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PatchV1RebalancingPortfoliosPortfolioIdRequest
- Throws:
IOException- if the JSON string is invalid with respect to PatchV1RebalancingPortfoliosPortfolioIdRequest
-
toJson
Convert an instance of PatchV1RebalancingPortfoliosPortfolioIdRequest to an JSON string- Returns:
- JSON string
-