Class ExerciseResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.ExerciseResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExerciseResponse
extends Object
implements Serializable
Response to an exercise request. This will return the total quantity of contracts exercised as well as the quantity of remaining contracts.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ExerciseResponseCreate an instance of ExerciseResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The total quantity of contracts exercised.The total quantity of contracts remaining after the exercise.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qtyExercised(BigDecimal qtyExercised) qtyRemaining(BigDecimal qtyRemaining) voidsetQtyExercised(BigDecimal qtyExercised) voidsetQtyRemaining(BigDecimal qtyRemaining) toJson()Convert an instance of ExerciseResponse 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_QTY_EXERCISED
- See Also:
-
SERIALIZED_NAME_QTY_REMAINING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExerciseResponse
public ExerciseResponse()
-
-
Method Details
-
qtyExercised
-
getQtyExercised
The total quantity of contracts exercised.- Returns:
- qtyExercised
-
setQtyExercised
-
qtyRemaining
-
getQtyRemaining
The total quantity of contracts remaining after the exercise.- Returns:
- qtyRemaining
-
setQtyRemaining
-
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 ExerciseResponse 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 ExerciseResponse
-
fromJson
Create an instance of ExerciseResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExerciseResponse
- Throws:
IOException- if the JSON string is invalid with respect to ExerciseResponse
-
toJson
Convert an instance of ExerciseResponse to an JSON string- Returns:
- JSON string
-