Record Class StoredReport
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.StoredReport
- Record Components:
partition- 儲存分區鍵fileId- write-once 的儲存識別;下載時作為 ETag,但不是授權憑證filename- 建議檔名contentType- MIME 類型size- 位元組數pageCount- 頁數createdAt- 文件時間(PDF metadata);不用於保存期限storedAt- 實際保存完成的時間;保存期限以此計算diagnostics- render 的 INFO 與 WARNING diagnostic
-
Constructor Summary
ConstructorsConstructorDescriptionStoredReport(String partition, String fileId, String filename, String contentType, long size, int pageCount, Instant createdAt, Instant storedAt, List<ReportDiagnostic> diagnostics) Creates an instance of aStoredReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thecreatedAtrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thepageCountrecord component.Returns the value of thepartitionrecord component.longsize()Returns the value of thesizerecord component.storedAt()Returns the value of thestoredAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StoredReport
public StoredReport(String partition, String fileId, String filename, String contentType, long size, int pageCount, Instant createdAt, Instant storedAt, List<ReportDiagnostic> diagnostics) Creates an instance of aStoredReportrecord class.- Parameters:
partition- the value for thepartitionrecord componentfileId- the value for thefileIdrecord componentfilename- the value for thefilenamerecord componentcontentType- the value for thecontentTyperecord componentsize- the value for thesizerecord componentpageCount- the value for thepageCountrecord componentcreatedAt- the value for thecreatedAtrecord componentstoredAt- the value for thestoredAtrecord componentdiagnostics- the value for thediagnosticsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
partition
-
fileId
-
filename
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
size
-
pageCount
-
createdAt
-
storedAt
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-