Class Watchlist
java.lang.Object
markets.alpaca.client.openapi.broker.model.Watchlist
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Watchlist
extends Object
implements Serializable
Represents a set of securities observed by a user.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetsItem(Asset assetsItem) createdAt(OffsetDateTime createdAt) booleanstatic WatchlistCreate an instance of Watchlist given an JSON stringUnique identifier of the account that owns this watchlist.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The contents of the watchlist, in the order as registeredWhen watchlist was createdgetId()Unique identifier of the watchlist itself.getName()User friendly Name of watchlistWhen watchlist was last updatedinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(UUID accountId) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of Watchlist to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_ASSETS
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Watchlist
public Watchlist()
-
-
Method Details
-
accountId
-
getAccountId
Unique identifier of the account that owns this watchlist.- Returns:
- accountId
-
setAccountId
-
assets
-
addAssetsItem
-
getAssets
The contents of the watchlist, in the order as registered- Returns:
- assets
-
setAssets
-
createdAt
-
getCreatedAt
When watchlist was created- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Unique identifier of the watchlist itself.- Returns:
- id
-
setId
-
name
-
getName
User friendly Name of watchlist- Returns:
- name
-
setName
-
updatedAt
-
getUpdatedAt
When watchlist was last updated- Returns:
- updatedAt
-
setUpdatedAt
-
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 Watchlist 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 Watchlist
-
fromJson
Create an instance of Watchlist given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Watchlist
- Throws:
IOException- if the JSON string is invalid with respect to Watchlist
-
toJson
Convert an instance of Watchlist to an JSON string- Returns:
- JSON string
-