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 aAIConversationRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthProviderId
record component.Returns the value of thecontextSection
record component.Returns the value of thecurrentUserPartyId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themessageJson
record component.final String
toString()
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 aAIConversationRequest
record class.- Parameters:
messageJson
- the value for themessageJson
record componentauthProviderId
- the value for theauthProviderId
record componentcontextSection
- the value for thecontextSection
record componentcurrentUserPartyId
- the value for thecurrentUserPartyId
record 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 themessageJson
record component.- Returns:
- the value of the
messageJson
record component
-
authProviderId
Returns the value of theauthProviderId
record component.- Returns:
- the value of the
authProviderId
record component
-
contextSection
Returns the value of thecontextSection
record component.- Returns:
- the value of the
contextSection
record component
-
currentUserPartyId
Returns the value of thecurrentUserPartyId
record component.- Returns:
- the value of the
currentUserPartyId
record component
-