Record Class AccountRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.account.AccountRequestContext
- Record Components:
userRef-AuthenticatedUserRefaccountRef-OwnedAccountRef
public record AccountRequestContext(AuthenticatedUserRef userRef, OwnedAccountRef accountRef)
extends Record
Resolved user and user-owned account for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountRequestContext(AuthenticatedUserRef userRef, OwnedAccountRef accountRef) Creates an instance of aAccountRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.userRef()Returns the value of theuserRefrecord component.
-
Constructor Details
-
AccountRequestContext
Creates an instance of aAccountRequestContextrecord class.- Parameters:
userRef- the value for theuserRefrecord componentaccountRef- the value for theaccountRefrecord component
-
-
Method Details
-
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). -
userRef
-
accountRef
Returns the value of theaccountRefrecord component.- Returns:
- the value of the
accountRefrecord component
-