Class RebalancerEventRebalanceCondition
java.lang.Object
markets.alpaca.client.openapi.broker.model.RebalancerEventRebalanceCondition
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class RebalancerEventRebalanceCondition
extends Object
implements Serializable
Rebalance condition on a `portfolio.status_changed` event. Empty `sub_type`, `percent`, and `day` are omitted.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumOmitted when the producer sends no subtype.static enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RebalancerEventRebalanceCondition given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getDay()Calendar day.Decimal string.Omitted when the producer sends no subtype.getType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetPercent(String percent) voidvoidtoJson()Convert an instance of RebalancerEventRebalanceCondition 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
-
RebalancerEventRebalanceCondition
public RebalancerEventRebalanceCondition()
-
-
Method Details
-
day
-
getDay
Calendar day. A lowercase weekday name (`monday` through `friday`) for `weekly`, a day of the month (`1` to `31`) for `monthly` and `quarterly`, and `MM-DD` for `annually`. Omitted when empty.- Returns:
- day
-
setDay
-
percent
-
getPercent
Decimal string. Present for drift_band conditions. Omitted when empty.- Returns:
- percent
-
setPercent
-
subType
public RebalancerEventRebalanceCondition subType(@Nullable RebalancerEventRebalanceCondition.SubTypeEnum subType) -
getSubType
Omitted when the producer sends no subtype.- Returns:
- subType
-
setSubType
-
type
public RebalancerEventRebalanceCondition type(@Nonnull RebalancerEventRebalanceCondition.TypeEnum type) -
getType
Get type- 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 RebalancerEventRebalanceCondition 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 RebalancerEventRebalanceCondition
-
fromJson
Create an instance of RebalancerEventRebalanceCondition given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RebalancerEventRebalanceCondition
- Throws:
IOException- if the JSON string is invalid with respect to RebalancerEventRebalanceCondition
-
toJson
Convert an instance of RebalancerEventRebalanceCondition to an JSON string- Returns:
- JSON string
-