Record Class AccountPortfolioRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.account.AccountPortfolioRequestContext
- Record Components:
accountContext-AccountRequestContextportfolioContext-PortfolioRequestContext
public record AccountPortfolioRequestContext(AccountRequestContext accountContext, PortfolioRequestContext portfolioContext)
extends Record
Resolved user-owned account and portfolio for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountPortfolioRequestContext(AccountRequestContext accountContext, PortfolioRequestContext portfolioContext) Creates an instance of aAccountPortfolioRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountContextrecord component.Returns the reference identifying the resolved account.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theportfolioContextrecord component.Returns the reference identifying the resolved portfolio.final StringtoString()Returns a string representation of this record class.userRef()Returns the reference identifying the authenticated user.
-
Constructor Details
-
AccountPortfolioRequestContext
public AccountPortfolioRequestContext(AccountRequestContext accountContext, PortfolioRequestContext portfolioContext) Creates an instance of aAccountPortfolioRequestContextrecord class.- Parameters:
accountContext- the value for theaccountContextrecord componentportfolioContext- the value for theportfolioContextrecord component
-
-
Method Details
-
userRef
Returns the reference identifying the authenticated user.- Returns:
AuthenticatedUserRef
-
accountRef
Returns the reference identifying the resolved account.- Returns:
OwnedAccountRef
-
portfolioRef
Returns the reference identifying the resolved portfolio.- Returns:
OwnedPortfolioRef
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
accountContext
Returns the value of theaccountContextrecord component.- Returns:
- the value of the
accountContextrecord component
-
portfolioContext
Returns the value of theportfolioContextrecord component.- Returns:
- the value of the
portfolioContextrecord component
-