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.23.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 TypeMethodDescriptionaddRebalancingConditionsItem(RebalancingConditions rebalancingConditionsItem) addWeightsItem(PortfolioWeights 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.Used to update portfolio conditions.Used to update portfolio weights.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rebalancingConditions(List<RebalancingConditions> rebalancingConditions) voidsetCooldownDays(Integer cooldownDays) voidsetDescription(String description) voidvoidsetRebalancingConditions(List<RebalancingConditions> rebalancingConditions) voidsetWeights(List<PortfolioWeights> 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<PortfolioWeights> weights)
-
Field Details
-
SERIALIZED_NAME_COOLDOWN_DAYS
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REBALANCING_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
-
rebalancingConditions
public PatchV1RebalancingPortfoliosPortfolioIdRequest rebalancingConditions(@Nullable List<RebalancingConditions> rebalancingConditions) -
addRebalancingConditionsItem
public PatchV1RebalancingPortfoliosPortfolioIdRequest addRebalancingConditionsItem(RebalancingConditions rebalancingConditionsItem) -
getRebalancingConditions
Used to update portfolio conditions.- Returns:
- rebalancingConditions
-
setRebalancingConditions
-
weights
public PatchV1RebalancingPortfoliosPortfolioIdRequest weights(@Nullable List<PortfolioWeights> weights) -
addWeightsItem
-
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
-