Record Class InProgressBackupManifest
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.s3.manifest.InProgressBackupManifest
- All Implemented Interfaces:
Manifest,ValidBackupManifest
public record InProgressBackupManifest(BackupIdentifierImpl id, BackupDescriptorImpl descriptor, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt)
extends Record
implements ValidBackupManifest
-
Constructor Summary
ConstructorsConstructorDescriptionInProgressBackupManifest(BackupIdentifierImpl id, BackupDescriptorImpl descriptor, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt) Creates an instance of aInProgressBackupManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasCompleted(FileSet snapshot, FileSet segments) Returns the value of thecreatedAtrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themodifiedAtrecord component.Returns the value of thesegmentFilesrecord component.Returns the value of thesnapshotFilesrecord component.toStatus()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InProgressBackupManifest
public InProgressBackupManifest(BackupIdentifierImpl id, BackupDescriptorImpl descriptor, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt) Creates an instance of aInProgressBackupManifestrecord class.- Parameters:
id- the value for theidrecord componentdescriptor- the value for thedescriptorrecord componentsnapshotFiles- the value for thesnapshotFilesrecord componentsegmentFiles- the value for thesegmentFilesrecord componentcreatedAt- the value for thecreatedAtrecord componentmodifiedAt- the value for themodifiedAtrecord component
-
-
Method Details
-
statusCode
- Specified by:
statusCodein interfaceManifest
-
asCompleted
-
asFailed
-
toStatus
-
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). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceManifest- Specified by:
idin interfaceValidBackupManifest- Returns:
- the value of the
idrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
snapshotFiles
Returns the value of thesnapshotFilesrecord component.- Returns:
- the value of the
snapshotFilesrecord component
-
segmentFiles
Returns the value of thesegmentFilesrecord component.- Returns:
- the value of the
segmentFilesrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Specified by:
createdAtin interfaceValidBackupManifest- Returns:
- the value of the
createdAtrecord component
-
modifiedAt
Returns the value of themodifiedAtrecord component.- Specified by:
modifiedAtin interfaceValidBackupManifest- Returns:
- the value of the
modifiedAtrecord component
-