Package org.nuxeo.ecm.blob.s3
Record Class S3BlobKey
java.lang.Object
java.lang.Record
org.nuxeo.ecm.blob.s3.S3BlobKey
- All Implemented Interfaces:
CloudBlobKey<S3BlobStoreConfiguration>
public record S3BlobKey(S3BlobStoreConfiguration config, String key)
extends Record
implements CloudBlobKey<S3BlobStoreConfiguration>
- Since:
- 2025.8
-
Constructor Summary
ConstructorsConstructorDescriptionS3BlobKey
(S3BlobStoreConfiguration config, String key) Creates an instance of aS3BlobKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionGets the bucket object key interpretable by the cloud storage provider.Gets the cloud storage prefix.config()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.blob.CloudBlobKey
isVersioned, versionId
-
Constructor Details
-
S3BlobKey
Creates an instance of aS3BlobKey
record class.- Parameters:
config
- the value for theconfig
record componentkey
- the value for thekey
record component
-
-
Method Details
-
bucketKey
Description copied from interface:CloudBlobKey
Gets the bucket object key interpretable by the cloud storage provider.- Specified by:
bucketKey
in interfaceCloudBlobKey<S3BlobStoreConfiguration>
-
bucketPrefix
Description copied from interface:CloudBlobKey
Gets the cloud storage prefix.- Specified by:
bucketPrefix
in interfaceCloudBlobKey<S3BlobStoreConfiguration>
-
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)
. -
config
Returns the value of theconfig
record component.- Specified by:
config
in interfaceCloudBlobKey<S3BlobStoreConfiguration>
- Returns:
- the value of the
config
record component
-
key
Returns the value of thekey
record component.- Specified by:
key
in interfaceCloudBlobKey<S3BlobStoreConfiguration>
- Returns:
- the value of the
key
record component
-