Package io.camunda.webapps.backup
Record Class BackupService.SnapshotRequest
java.lang.Object
java.lang.Record
io.camunda.webapps.backup.BackupService.SnapshotRequest
- Enclosing interface:
BackupService
public static record BackupService.SnapshotRequest(String repositoryName, String snapshotName, SnapshotIndexCollection indices, Metadata metadata)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotRequest(String repositoryName, String snapshotName, SnapshotIndexCollection indices, Metadata metadata) Creates an instance of aSnapshotRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indices()Returns the value of theindicesrecord component.indices(boolean onlyRequired) metadata()Returns the value of themetadatarecord component.Returns the value of therepositoryNamerecord component.Returns the value of thesnapshotNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnapshotRequest
public SnapshotRequest(String repositoryName, String snapshotName, SnapshotIndexCollection indices, Metadata metadata) Creates an instance of aSnapshotRequestrecord class.- Parameters:
repositoryName- the value for therepositoryNamerecord componentsnapshotName- the value for thesnapshotNamerecord componentindices- the value for theindicesrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
indices
-
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). -
repositoryName
Returns the value of therepositoryNamerecord component.- Returns:
- the value of the
repositoryNamerecord component
-
snapshotName
Returns the value of thesnapshotNamerecord component.- Returns:
- the value of the
snapshotNamerecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-