Class RebalancingConditionsResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancingConditionsResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancingConditionsResponse
extends Object
implements Serializable
A rebalancing condition as returned on a portfolio. type, sub_type, percent, and day are always present. percent and day are null when they do not apply.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCondition that triggers automatic rebalancing. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RebalancingConditionsResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getDay()Calendar day.Drift band threshold as a decimal string, up to two decimal places.For drift_band: absolute or relative.getType()Condition that triggers automatic rebalancing.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetPercent(String percent) voidsetSubType(String subType) voidtoJson()Convert an instance of RebalancingConditionsResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DAY
- See Also:
-
SERIALIZED_NAME_PERCENT
- See Also:
-
SERIALIZED_NAME_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RebalancingConditionsResponse
public RebalancingConditionsResponse()
-
-
Method Details
-
day
-
getDay
Calendar day. For weekly: monday-friday. For monthly and quarterly: a day of the month from 1 to 31. For annually: MM-DD. null when the condition is not a calendar. Always present.- Returns:
- day
-
setDay
-
percent
-
getPercent
Drift band threshold as a decimal string, up to two decimal places. null when the condition is not a drift band. Always present.- Returns:
- percent
-
setPercent
-
subType
-
getSubType
For drift_band: absolute or relative. For calendar: weekly, monthly, quarterly, or annually. Empty string for on_portfolio_update, which has no sub-type. Always present.- Returns:
- subType
-
setSubType
-
type
-
getType
Condition that triggers automatic rebalancing.- Returns:
- type
-
setType
-
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 RebalancingConditionsResponse 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 RebalancingConditionsResponse
-
fromJson
Create an instance of RebalancingConditionsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancingConditionsResponse
- Throws:
IOException- if the JSON string is invalid with respect to RebalancingConditionsResponse
-
toJson
Convert an instance of RebalancingConditionsResponse to an JSON string- Returns:
- JSON string
-