Package com.adobe.testing.s3mock.store
Record Class MultipartUploadInfo
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.store.MultipartUploadInfo
public record MultipartUploadInfo(MultipartUpload upload, String contentType, Map<String,String> userMetadata, Map<String,String> storeHeaders, Map<String,String> encryptionHeaders, String bucket, StorageClass storageClass, String checksum, ChecksumAlgorithm checksumAlgorithm)
extends Record
Encapsulates
MultipartUpload and corresponding contentType.-
Constructor Summary
ConstructorsConstructorDescriptionMultipartUploadInfo(MultipartUpload upload, String contentType, Map<String, String> userMetadata, Map<String, String> storeHeaders, Map<String, String> encryptionHeaders, String bucket, StorageClass storageClass, String checksum, ChecksumAlgorithm checksumAlgorithm) Creates an instance of aMultipartUploadInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.checksum()Returns the value of thechecksumrecord component.Returns the value of thechecksumAlgorithmrecord component.Returns the value of thecontentTyperecord component.Returns the value of theencryptionHeadersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestorageClassrecord component.Returns the value of thestoreHeadersrecord component.final StringtoString()Returns a string representation of this record class.upload()Returns the value of theuploadrecord component.Returns the value of theuserMetadatarecord component.
-
Constructor Details
-
MultipartUploadInfo
public MultipartUploadInfo(MultipartUpload upload, String contentType, Map<String, String> userMetadata, Map<String, String> storeHeaders, Map<String, String> encryptionHeaders, String bucket, StorageClass storageClass, String checksum, ChecksumAlgorithm checksumAlgorithm) Creates an instance of aMultipartUploadInforecord class.- Parameters:
upload- the value for theuploadrecord componentcontentType- the value for thecontentTyperecord componentuserMetadata- the value for theuserMetadatarecord componentstoreHeaders- the value for thestoreHeadersrecord componentencryptionHeaders- the value for theencryptionHeadersrecord componentbucket- the value for thebucketrecord componentstorageClass- the value for thestorageClassrecord componentchecksum- the value for thechecksumrecord componentchecksumAlgorithm- the value for thechecksumAlgorithmrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
upload
Returns the value of theuploadrecord component.- Returns:
- the value of the
uploadrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
userMetadata
Returns the value of theuserMetadatarecord component.- Returns:
- the value of the
userMetadatarecord 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
-
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
storageClass
Returns the value of thestorageClassrecord component.- Returns:
- the value of the
storageClassrecord component
-
checksum
Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
checksumAlgorithm
Returns the value of thechecksumAlgorithmrecord component.- Returns:
- the value of the
checksumAlgorithmrecord component
-