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 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 a MultipartUploadInfo record class.
      Parameters:
      upload - the value for the upload record component
      contentType - the value for the contentType record component
      userMetadata - the value for the userMetadata record component
      storeHeaders - the value for the storeHeaders record component
      encryptionHeaders - the value for the encryptionHeaders record component
      bucket - the value for the bucket record component
      storageClass - the value for the storageClass record component
      checksum - the value for the checksum record component
      checksumAlgorithm - the value for the checksumAlgorithm record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • upload

      public MultipartUpload upload()
      Returns the value of the upload record component.
      Returns:
      the value of the upload record component
    • contentType

      public String contentType()
      Returns the value of the contentType record component.
      Returns:
      the value of the contentType record component
    • userMetadata

      public Map<String,String> userMetadata()
      Returns the value of the userMetadata record component.
      Returns:
      the value of the userMetadata record component
    • storeHeaders

      public Map<String,String> storeHeaders()
      Returns the value of the storeHeaders record component.
      Returns:
      the value of the storeHeaders record component
    • encryptionHeaders

      public Map<String,String> encryptionHeaders()
      Returns the value of the encryptionHeaders record component.
      Returns:
      the value of the encryptionHeaders record component
    • bucket

      public String bucket()
      Returns the value of the bucket record component.
      Returns:
      the value of the bucket record component
    • storageClass

      public StorageClass storageClass()
      Returns the value of the storageClass record component.
      Returns:
      the value of the storageClass record component
    • checksum

      public String checksum()
      Returns the value of the checksum record component.
      Returns:
      the value of the checksum record component
    • checksumAlgorithm

      public ChecksumAlgorithm checksumAlgorithm()
      Returns the value of the checksumAlgorithm record component.
      Returns:
      the value of the checksumAlgorithm record component