Record Class UploadRef
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.uploads.UploadRef
- Record Components:
ref- the opaque ref (pass it in uploadRefs when launching a job)fileName- the file's namesizeBytes- its sizecontentType- its content type, as uploadedexpiresAt- when the ref stops working (a job that uses it extends it)
- All Implemented Interfaces:
Serializable
public record UploadRef(String ref, String fileName, Long sizeBytes, String contentType, Instant expiresAt)
extends Record
implements Serializable
An uploaded file, as clients see it (spec section 3.2). The ref is opaque,
bound to the uploading user, and expires.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.ref()Returns the value of therefrecord component.Returns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UploadRef
public UploadRef(String ref, String fileName, Long sizeBytes, String contentType, Instant expiresAt) Creates an instance of aUploadRefrecord class.- Parameters:
ref- the value for therefrecord componentfileName- the value for thefileNamerecord componentsizeBytes- the value for thesizeBytesrecord componentcontentType- the value for thecontentTyperecord componentexpiresAt- the value for theexpiresAtrecord 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). -
ref
-
fileName
-
sizeBytes
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
expiresAt
-