Class RebalancerEventPortfolio
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerEventPortfolio
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerEventPortfolio
extends Object
implements Serializable
Portfolio snapshot carried on `portfolio.status_changed`, including weights and rebalance conditions.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRebalanceConditionsItem(RebalancerEventRebalanceCondition rebalanceConditionsItem) addWeightsItem(PortfolioWeights weightsItem) cooldownDays(Integer cooldownDays) createdAt(OffsetDateTime createdAt) description(String description) booleanstatic RebalancerEventPortfolioCreate an instance of RebalancerEventPortfolio given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get cooldownDaysGet createdAtGet descriptiongetId()Get idgetName()Get nameGet rebalanceConditionsGet statusGet updatedAtGet weightsinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rebalanceConditions(List<RebalancerEventRebalanceCondition> rebalanceConditions) voidsetCooldownDays(Integer cooldownDays) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidvoidvoidsetRebalanceConditions(List<RebalancerEventRebalanceCondition> rebalanceConditions) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) voidsetWeights(List<PortfolioWeights> weights) toJson()Convert an instance of RebalancerEventPortfolio to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_REBALANCE_CONDITIONS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_WEIGHTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RebalancerEventPortfolio
public RebalancerEventPortfolio()
-
-
Method Details
-
cooldownDays
-
getCooldownDays
Get cooldownDays- Returns:
- cooldownDays
-
setCooldownDays
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
rebalanceConditions
public RebalancerEventPortfolio rebalanceConditions(@Nonnull List<RebalancerEventRebalanceCondition> rebalanceConditions) -
addRebalanceConditionsItem
public RebalancerEventPortfolio addRebalanceConditionsItem(RebalancerEventRebalanceCondition rebalanceConditionsItem) -
getRebalanceConditions
Get rebalanceConditions- Returns:
- rebalanceConditions
-
setRebalanceConditions
public void setRebalanceConditions(@Nonnull List<RebalancerEventRebalanceCondition> rebalanceConditions) -
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
weights
-
addWeightsItem
-
getWeights
Get weights- 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 RebalancerEventPortfolio 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 RebalancerEventPortfolio
-
fromJson
Create an instance of RebalancerEventPortfolio given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerEventPortfolio
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerEventPortfolio
-
toJson
Convert an instance of RebalancerEventPortfolio to an JSON string- Returns:
- JSON string
-