Record Class Interactions.RequestResponseEncountered
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.Interactions.RequestResponseEncountered
- Enclosing class:
Interactions
public static record Interactions.RequestResponseEncountered(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequestResponseEncountered(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response) Creates an instance of aRequestResponseEncounteredrecord class.RequestResponseEncountered(Interactions.RequestEncountered request, Interactions.ResponseEncountered response) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.request()Returns the value of therequestrecord component.response()Returns the value of theresponserecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestResponseEncountered
public RequestResponseEncountered(Interactions.RequestEncountered request, Interactions.ResponseEncountered response) -
RequestResponseEncountered
public RequestResponseEncountered(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response) Creates an instance of aRequestResponseEncounteredrecord class.- Parameters:
interactionId- the value for theinteractionIdrecord componenttenant- the value for thetenantrecord componentrequest- the value for therequestrecord componentresponse- the value for theresponserecord 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). -
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-