Record Class PartitionBackupStatus
java.lang.Object
java.lang.Record
io.camunda.zeebe.gateway.admin.backup.PartitionBackupStatus
public record PartitionBackupStatus(int partitionId, BackupStatusCode status, Optional<String> failureReason, Optional<String> createdAt, Optional<String> lastUpdatedAt, Optional<String> snapshotId, OptionalLong checkpointPosition, OptionalInt brokerId, Optional<String> brokerVersion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionBackupStatus(int partitionId, BackupStatusCode status, Optional<String> failureReason, Optional<String> createdAt, Optional<String> lastUpdatedAt, Optional<String> snapshotId, OptionalLong checkpointPosition, OptionalInt brokerId, Optional<String> brokerVersion) Creates an instance of aPartitionBackupStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbrokerId()Returns the value of thebrokerIdrecord component.Returns the value of thebrokerVersionrecord component.Returns the value of thecheckpointPositionrecord component.Returns the value of thecreatedAtrecord 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.Returns the value of thelastUpdatedAtrecord component.intReturns the value of thepartitionIdrecord component.Returns the value of thesnapshotIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionBackupStatus
public PartitionBackupStatus(int partitionId, BackupStatusCode status, Optional<String> failureReason, Optional<String> createdAt, Optional<String> lastUpdatedAt, Optional<String> snapshotId, OptionalLong checkpointPosition, OptionalInt brokerId, Optional<String> brokerVersion) Creates an instance of aPartitionBackupStatusrecord class.- Parameters:
partitionId- the value for thepartitionIdrecord componentstatus- the value for thestatusrecord componentfailureReason- the value for thefailureReasonrecord componentcreatedAt- the value for thecreatedAtrecord componentlastUpdatedAt- the value for thelastUpdatedAtrecord componentsnapshotId- the value for thesnapshotIdrecord componentcheckpointPosition- the value for thecheckpointPositionrecord componentbrokerId- the value for thebrokerIdrecord componentbrokerVersion- the value for thebrokerVersionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
partitionId
public int partitionId()Returns the value of thepartitionIdrecord component.- Returns:
- the value of the
partitionIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
lastUpdatedAt
Returns the value of thelastUpdatedAtrecord component.- Returns:
- the value of the
lastUpdatedAtrecord component
-
snapshotId
Returns the value of thesnapshotIdrecord component.- Returns:
- the value of the
snapshotIdrecord component
-
checkpointPosition
Returns the value of thecheckpointPositionrecord component.- Returns:
- the value of the
checkpointPositionrecord component
-
brokerId
Returns the value of thebrokerIdrecord component.- Returns:
- the value of the
brokerIdrecord component
-
brokerVersion
Returns the value of thebrokerVersionrecord component.- Returns:
- the value of the
brokerVersionrecord component
-