Record Class FailedBackupManifest
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.s3.manifest.FailedBackupManifest
- All Implemented Interfaces:
Manifest,ValidBackupManifest
public record FailedBackupManifest(BackupIdentifierImpl id, Optional<BackupDescriptorImpl> descriptor, String failureReason, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt)
extends Record
implements ValidBackupManifest
-
Constructor Summary
ConstructorsConstructorDescriptionFailedBackupManifest(BackupIdentifierImpl id, Optional<BackupDescriptorImpl> descriptor, String failureReason, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt) Creates an instance of aFailedBackupManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureReasonrecord component.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
-
FailedBackupManifest
public FailedBackupManifest(BackupIdentifierImpl id, Optional<BackupDescriptorImpl> descriptor, String failureReason, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt) Creates an instance of aFailedBackupManifestrecord class.- Parameters:
id- the value for theidrecord componentdescriptor- the value for thedescriptorrecord componentfailureReason- the value for thefailureReasonrecord 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
-
toStatus
-
asFailed
-
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
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord 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
-