Class PostV1RebalancingRunsRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.PostV1RebalancingRunsRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PostV1RebalancingRunsRequest
extends Object
implements Serializable
PostV1RebalancingRunsRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PostV1RebalancingRunsRequestCreate an instance of PostV1RebalancingRunsRequest given an JSON stringThe account to create the run for.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getType()`full_rebalance` or `invest_cash`Get weightsinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(String accountId) voidvoidsetWeights(PortfolioWeights weights) toJson()Convert an instance of PostV1RebalancingRunsRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundweights(PortfolioWeights weights)
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_WEIGHTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PostV1RebalancingRunsRequest
public PostV1RebalancingRunsRequest()
-
-
Method Details
-
accountId
-
getAccountId
The account to create the run for.- Returns:
- accountId
-
setAccountId
-
type
-
getType
`full_rebalance` or `invest_cash`- Returns:
- type
-
setType
-
weights
-
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 PostV1RebalancingRunsRequest 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 PostV1RebalancingRunsRequest
-
fromJson
Create an instance of PostV1RebalancingRunsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PostV1RebalancingRunsRequest
- Throws:
IOException- if the JSON string is invalid with respect to PostV1RebalancingRunsRequest
-
toJson
Convert an instance of PostV1RebalancingRunsRequest to an JSON string- Returns:
- JSON string
-