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 Details

    • FailedBackupManifest

      public FailedBackupManifest(BackupIdentifierImpl id, Optional<BackupDescriptorImpl> descriptor, String failureReason, FileSet snapshotFiles, FileSet segmentFiles, Instant createdAt, Instant modifiedAt)
      Creates an instance of a FailedBackupManifest record class.
      Parameters:
      id - the value for the id record component
      descriptor - the value for the descriptor record component
      failureReason - the value for the failureReason record component
      snapshotFiles - the value for the snapshotFiles record component
      segmentFiles - the value for the segmentFiles record component
      createdAt - the value for the createdAt record component
      modifiedAt - the value for the modifiedAt record component
  • Method Details

    • statusCode

      public BackupStatusCode statusCode()
      Specified by:
      statusCode in interface Manifest
    • toStatus

      public BackupStatus toStatus()
      Specified by:
      toStatus in interface Manifest
    • asFailed

      public FailedBackupManifest asFailed(String failureReason)
      Specified by:
      asFailed in interface Manifest
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public BackupIdentifierImpl id()
      Returns the value of the id record component.
      Specified by:
      id in interface Manifest
      Specified by:
      id in interface ValidBackupManifest
      Returns:
      the value of the id record component
    • descriptor

      public Optional<BackupDescriptorImpl> descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • failureReason

      public String failureReason()
      Returns the value of the failureReason record component.
      Returns:
      the value of the failureReason record component
    • snapshotFiles

      public FileSet snapshotFiles()
      Returns the value of the snapshotFiles record component.
      Returns:
      the value of the snapshotFiles record component
    • segmentFiles

      public FileSet segmentFiles()
      Returns the value of the segmentFiles record component.
      Returns:
      the value of the segmentFiles record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Specified by:
      createdAt in interface ValidBackupManifest
      Returns:
      the value of the createdAt record component
    • modifiedAt

      public Instant modifiedAt()
      Returns the value of the modifiedAt record component.
      Specified by:
      modifiedAt in interface ValidBackupManifest
      Returns:
      the value of the modifiedAt record component