Record Class UploadAcceptedResponse
java.lang.Object
java.lang.Record
ai.pipestream.connector.intake.http.UploadAcceptedResponse
public record UploadAcceptedResponse(String status, String docId, String token, String requestId)
extends Record
Accepted-upload response body. Jackson-serialized — never hand-built. Carries
the canonical doc_id and the opaque tracking token the client presents to the
status lookup. An empty
requestId (client sent no correlation id) is
omitted.-
Constructor Summary
ConstructorsConstructorDescriptionUploadAcceptedResponse(String status, String docId, String token, String requestId) Creates an instance of aUploadAcceptedResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocId()Returns the value of thedocIdrecord 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 therequestIdrecord component.status()Returns the value of thestatusrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UploadAcceptedResponse
Creates an instance of aUploadAcceptedResponserecord class.- Parameters:
status- the value for thestatusrecord componentdocId- the value for thedocIdrecord componenttoken- the value for thetokenrecord componentrequestId- the value for therequestIdrecord 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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
docId
Returns the value of thedocIdrecord component.- Returns:
- the value of the
docIdrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-