Package com.adobe.testing.s3mock.store
Record Class S3ObjectMetadata
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.store.S3ObjectMetadata
public record S3ObjectMetadata(UUID id, String key, String size, String modificationDate, String etag, String contentType, long lastModified, Path dataPath, Map<String,String> userMetadata, List<Tag> tags, LegalHold legalHold, Retention retention, Owner owner, Map<String,String> storeHeaders, Map<String,String> encryptionHeaders, ChecksumAlgorithm checksumAlgorithm, String checksum)
extends Record
Represents an object in S3, used to serialize and deserialize all metadata locally.
-
Constructor Summary
ConstructorsConstructorDescriptionS3ObjectMetadata(UUID id, String key, String size, String modificationDate, String etag, String contentType, long lastModified, Path dataPath, Map<String, String> userMetadata, List<Tag> tags, LegalHold legalHold, Retention retention, Owner owner, Map<String, String> storeHeaders, Map<String, String> encryptionHeaders, ChecksumAlgorithm checksumAlgorithm, String checksum) Creates an instance of aS3ObjectMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionchecksum()Returns the value of thechecksumrecord component.Returns the value of thechecksumAlgorithmrecord component.Returns the value of thecontentTyperecord component.dataPath()Returns the value of thedataPathrecord component.Returns the value of theencryptionHeadersrecord component.final booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.longReturns the value of thelastModifiedrecord component.Returns the value of thelegalHoldrecord component.Returns the value of themodificationDaterecord component.owner()Returns the value of theownerrecord component.Returns the value of theretentionrecord component.size()Returns the value of thesizerecord component.Returns the value of thestoreHeadersrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserMetadatarecord component.
-
Constructor Details
-
S3ObjectMetadata
public S3ObjectMetadata(UUID id, String key, String size, String modificationDate, String etag, String contentType, long lastModified, Path dataPath, Map<String, String> userMetadata, List<Tag> tags, LegalHold legalHold, Retention retention, Owner owner, Map<String, String> storeHeaders, Map<String, String> encryptionHeaders, ChecksumAlgorithm checksumAlgorithm, String checksum) Creates an instance of aS3ObjectMetadatarecord class.- Parameters:
id- the value for theidrecord componentkey- the value for thekeyrecord componentsize- the value for thesizerecord componentmodificationDate- the value for themodificationDaterecord componentetag- the value for theetagrecord componentcontentType- the value for thecontentTyperecord componentlastModified- the value for thelastModifiedrecord componentdataPath- the value for thedataPathrecord componentuserMetadata- the value for theuserMetadatarecord componenttags- the value for thetagsrecord componentlegalHold- the value for thelegalHoldrecord componentretention- the value for theretentionrecord componentowner- the value for theownerrecord componentstoreHeaders- the value for thestoreHeadersrecord componentencryptionHeaders- the value for theencryptionHeadersrecord componentchecksumAlgorithm- the value for thechecksumAlgorithmrecord componentchecksum- the value for thechecksumrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
modificationDate
Returns the value of themodificationDaterecord component.- Returns:
- the value of the
modificationDaterecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
lastModified
public long lastModified()Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-
dataPath
Returns the value of thedataPathrecord component.- Returns:
- the value of the
dataPathrecord component
-
userMetadata
Returns the value of theuserMetadatarecord component.- Returns:
- the value of the
userMetadatarecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
legalHold
Returns the value of thelegalHoldrecord component.- Returns:
- the value of the
legalHoldrecord component
-
retention
Returns the value of theretentionrecord component.- Returns:
- the value of the
retentionrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
storeHeaders
Returns the value of thestoreHeadersrecord component.- Returns:
- the value of the
storeHeadersrecord component
-
encryptionHeaders
Returns the value of theencryptionHeadersrecord component.- Returns:
- the value of the
encryptionHeadersrecord component
-
checksumAlgorithm
Returns the value of thechecksumAlgorithmrecord component.- Returns:
- the value of the
checksumAlgorithmrecord component
-
checksum
Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-