Class PortfolioSubscription
java.lang.Object
markets.alpaca.client.openapi.broker.model.PortfolioSubscription
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PortfolioSubscription
extends Object
implements Serializable
PortfolioSubscription
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic PortfolioSubscriptionCreate an instance of PortfolioSubscription given an JSON stringAccount ID subscribing to portfolioReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Subscription creation timestampgetId()Subscription IDLast rebalancing event for this subscription.Portfolio ID for subscriptioninthashCode()lastRebalancedAt(String lastRebalancedAt) portfolioId(String portfolioId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(String accountId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetLastRebalancedAt(String lastRebalancedAt) voidsetPortfolioId(String portfolioId) toJson()Convert an instance of PortfolioSubscription 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_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LAST_REBALANCED_AT
- See Also:
-
SERIALIZED_NAME_PORTFOLIO_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PortfolioSubscription
public PortfolioSubscription()
-
-
Method Details
-
accountId
-
getAccountId
Account ID subscribing to portfolio- Returns:
- accountId
-
setAccountId
-
createdAt
-
getCreatedAt
Subscription creation timestamp- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Subscription ID- Returns:
- id
-
setId
-
lastRebalancedAt
-
getLastRebalancedAt
Last rebalancing event for this subscription. Can be null.- Returns:
- lastRebalancedAt
-
setLastRebalancedAt
-
portfolioId
-
getPortfolioId
Portfolio ID for subscription- Returns:
- portfolioId
-
setPortfolioId
-
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 PortfolioSubscription 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 PortfolioSubscription
-
fromJson
Create an instance of PortfolioSubscription given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PortfolioSubscription
- Throws:
IOException- if the JSON string is invalid with respect to PortfolioSubscription
-
toJson
Convert an instance of PortfolioSubscription to an JSON string- Returns:
- JSON string
-