Record Class ListMessagesResponse
java.lang.Object
java.lang.Record
bg.codexio.ai.openai.api.payload.message.response.ListMessagesResponse
- All Implemented Interfaces:
Mergeable<ListMessagesResponse>
public record ListMessagesResponse(String object, List<MessageResponse> data, String firstId, String lastId, Boolean hasMore)
extends Record
implements Mergeable<ListMessagesResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionListMessagesResponse(String object, List<MessageResponse> data, String firstId, String lastId, Boolean hasMore) Creates an instance of aListMessagesResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.firstId()Returns the value of thefirstIdrecord component.final inthashCode()Returns a hash code value for this object.hasMore()Returns the value of thehasMorerecord component.lastId()Returns the value of thelastIdrecord component.merge(ListMessagesResponse other) object()Returns the value of theobjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListMessagesResponse
public ListMessagesResponse(String object, List<MessageResponse> data, String firstId, String lastId, Boolean hasMore) Creates an instance of aListMessagesResponserecord class.- Parameters:
object- the value for theobjectrecord componentdata- the value for thedatarecord componentfirstId- the value for thefirstIdrecord componentlastId- the value for thelastIdrecord componenthasMore- the value for thehasMorerecord component
-
-
Method Details
-
merge
- Specified by:
mergein interfaceMergeable<ListMessagesResponse>
-
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). -
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
firstId
Returns the value of thefirstIdrecord component.- Returns:
- the value of the
firstIdrecord component
-
lastId
Returns the value of thelastIdrecord component.- Returns:
- the value of the
lastIdrecord component
-
hasMore
Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-