Package io.camunda.zeebe.backup.common
Record Class BackupStatusImpl
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.common.BackupStatusImpl
- All Implemented Interfaces:
BackupStatus
public record BackupStatusImpl(BackupIdentifier id, Optional<BackupDescriptor> descriptor, BackupStatusCode statusCode, Optional<String> failureReason, Optional<Instant> created, Optional<Instant> lastModified)
extends Record
implements BackupStatus
-
Constructor Summary
ConstructorsConstructorDescriptionBackupStatusImpl(BackupIdentifier id, Optional<BackupDescriptor> descriptor, BackupStatusCode statusCode, Optional<String> failureReason, Optional<Instant> created, Optional<Instant> lastModified) Creates an instance of aBackupStatusImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thedescriptorrecord component.static BackupStatusImplfinal 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 thelastModifiedrecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackupStatusImpl
public BackupStatusImpl(BackupIdentifier id, Optional<BackupDescriptor> descriptor, BackupStatusCode statusCode, Optional<String> failureReason, Optional<Instant> created, Optional<Instant> lastModified) Creates an instance of aBackupStatusImplrecord class.- Parameters:
id- the value for theidrecord componentdescriptor- the value for thedescriptorrecord componentstatusCode- the value for thestatusCoderecord componentfailureReason- the value for thefailureReasonrecord componentcreated- the value for thecreatedrecord componentlastModified- the value for thelastModifiedrecord component
-
-
Method Details
-
doesNotExist
-
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 interfaceBackupStatus- Returns:
- the value of the
idrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Specified by:
descriptorin interfaceBackupStatus- Returns:
- the value of the
descriptorrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Specified by:
statusCodein interfaceBackupStatus- Returns:
- the value of the
statusCoderecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Specified by:
failureReasonin interfaceBackupStatus- Returns:
- the value of the
failureReasonrecord component
-
created
Returns the value of thecreatedrecord component.- Specified by:
createdin interfaceBackupStatus- Returns:
- the value of the
createdrecord component
-
lastModified
Returns the value of thelastModifiedrecord component.- Specified by:
lastModifiedin interfaceBackupStatus- Returns:
- the value of the
lastModifiedrecord component
-