Record Class AIConversationRequest
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.AIConversationRequest
public record AIConversationRequest(AIConversationRequest.Message messageJson, String authProviderId, String contextSection, String currentUserPartyId)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAIConversationRequest(AIConversationRequest.Message messageJson, String contextSection) AIConversationRequest(AIConversationRequest.Message messageJson, String authProviderId, String contextSection, String currentUserPartyId) Creates an instance of aAIConversationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthProviderIdrecord component.Returns the value of thecontextSectionrecord component.Returns the value of thecurrentUserPartyIdrecord component.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 themessageJsonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AIConversationRequest
-
AIConversationRequest
public AIConversationRequest(AIConversationRequest.Message messageJson, String authProviderId, String contextSection, String currentUserPartyId) Creates an instance of aAIConversationRequestrecord class.- Parameters:
messageJson- the value for themessageJsonrecord componentauthProviderId- the value for theauthProviderIdrecord componentcontextSection- the value for thecontextSectionrecord componentcurrentUserPartyId- the value for thecurrentUserPartyIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
messageJson
Returns the value of themessageJsonrecord component.- Returns:
- the value of the
messageJsonrecord component
-
authProviderId
Returns the value of theauthProviderIdrecord component.- Returns:
- the value of the
authProviderIdrecord component
-
contextSection
Returns the value of thecontextSectionrecord component.- Returns:
- the value of the
contextSectionrecord component
-
currentUserPartyId
Returns the value of thecurrentUserPartyIdrecord component.- Returns:
- the value of the
currentUserPartyIdrecord component
-