Class Portfolio
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCurrent status of portfolio -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWeightsItem(PortfolioWeights weightsItem) cooldownDays(Integer cooldownDays) description(String description) booleanstatic PortfolioCreate an instance of Portfolio 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 rebalancePortfolio creation timestampText to describe portfoliogetId()Portfolio IDgetName()Name of portfolioRebalancing conditions for portfolioCurrent status of portfolioPortfolio updated timestampWeight configuration to portfolio.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rebalancingConditions(String rebalancingConditions) voidsetCooldownDays(Integer cooldownDays) voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidvoidvoidsetRebalancingConditions(String rebalancingConditions) voidsetStatus(Portfolio.StatusEnum status) voidsetUpdatedAt(String updatedAt) voidsetWeights(List<PortfolioWeights> weights) status(Portfolio.StatusEnum status) toJson()Convert an instance of Portfolio 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_REBALANCING_CONDITIONS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_WEIGHTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Portfolio
public Portfolio()
-
-
Method Details
-
cooldownDays
-
getCooldownDays
Count of calendar days following a rebalance before a subscription is eligible to trigger another rebalance- Returns:
- cooldownDays
-
setCooldownDays
-
createdAt
-
getCreatedAt
Portfolio creation timestamp- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Text to describe portfolio- Returns:
- description
-
setDescription
-
id
-
getId
Portfolio ID- Returns:
- id
-
setId
-
name
-
getName
Name of portfolio- Returns:
- name
-
setName
-
rebalancingConditions
-
getRebalancingConditions
Rebalancing conditions for portfolio- Returns:
- rebalancingConditions
-
setRebalancingConditions
-
status
-
getStatus
Current status of portfolio- Returns:
- status
-
setStatus
-
updatedAt
-
getUpdatedAt
Portfolio updated timestamp- Returns:
- updatedAt
-
setUpdatedAt
-
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 Portfolio 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 Portfolio
-
fromJson
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
Convert an instance of Portfolio to an JSON string- Returns:
- JSON string
-