Package com.adobe.testing.s3mock.dto
Record Class MultipartUpload
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.MultipartUpload
public record MultipartUpload(String key, String uploadId, Owner owner, Owner initiator, StorageClass storageClass, Date initiated)
extends Record
Container for elements related to a particular multipart upload.
API Reference
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartUpload(String key, String uploadId, Owner owner, Owner initiator, StorageClass storageClass, Date initiated) Creates an instance of aMultipartUploadrecord 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.Returns the value of theinitiatedrecord component.Returns the value of theinitiatorrecord component.key()Returns the value of thekeyrecord component.owner()Returns the value of theownerrecord component.Returns the value of thestorageClassrecord component.final StringtoString()Returns a string representation of this record class.uploadId()Returns the value of theuploadIdrecord component.
-
Constructor Details
-
MultipartUpload
public MultipartUpload(String key, String uploadId, Owner owner, Owner initiator, StorageClass storageClass, Date initiated) Creates an instance of aMultipartUploadrecord class.- Parameters:
key- the value for thekeyrecord componentuploadId- the value for theuploadIdrecord componentowner- the value for theownerrecord componentinitiator- the value for theinitiatorrecord componentstorageClass- the value for thestorageClassrecord componentinitiated- the value for theinitiatedrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
uploadId
Returns the value of theuploadIdrecord component.- Returns:
- the value of the
uploadIdrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
initiator
Returns the value of theinitiatorrecord component.- Returns:
- the value of the
initiatorrecord component
-
storageClass
Returns the value of thestorageClassrecord component.- Returns:
- the value of the
storageClassrecord component
-
initiated
Returns the value of theinitiatedrecord component.- Returns:
- the value of the
initiatedrecord component
-