Record Class UploadStatusModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.UploadStatusModel
- Record Components:
uploadId- the upload id asked aboutstatus-uploading,uploaded,failed, orunknownwhen this server holds no such upload for the usersize- the bytes received so far, or the stored file's size once uploadedfileName- the file name the upload request gavemimeType- the mime type the upload request declaredmessage- what the status means for the caller's next step, when it is notuploaded
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.mimeType()Returns the value of themimeTyperecord component.size()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.uploadId()Returns the value of theuploadIdrecord component.
-
Constructor Details
-
UploadStatusModel
public UploadStatusModel(String uploadId, String status, Long size, String fileName, String mimeType, String message) Creates an instance of aUploadStatusModelrecord class.- Parameters:
uploadId- the value for theuploadIdrecord componentstatus- the value for thestatusrecord componentsize- the value for thesizerecord componentfileName- the value for thefileNamerecord componentmimeType- the value for themimeTyperecord componentmessage- the value for themessagerecord 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). -
uploadId
-
status
-
size
-
fileName
-
mimeType
-
message
-