Package com.adobe.testing.s3mock.dto
Record Class ListPartsResult
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.ListPartsResult
public record ListPartsResult(String bucket, String key, String uploadId, String partNumberMarker, String nextPartNumberMarker, boolean truncated, StorageClass storageClass, List<Part> parts, Owner owner, Owner initiator, ChecksumAlgorithm checksumAlgorithm)
extends Record
List-Parts result with some hard-coded values as this is sufficient for now.
API Reference
-
Constructor Summary
ConstructorsConstructorDescriptionListPartsResult(String bucket, String key, String uploadId, String partNumberMarker, String nextPartNumberMarker, boolean truncated, StorageClass storageClass, List<Part> parts, Owner owner, Owner initiator, ChecksumAlgorithm checksumAlgorithm) Creates an instance of aListPartsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.Returns the value of thechecksumAlgorithmrecord 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 theinitiatorrecord component.key()Returns the value of thekeyrecord component.Returns the value of thenextPartNumberMarkerrecord component.owner()Returns the value of theownerrecord component.Returns the value of thepartNumberMarkerrecord component.parts()Returns the value of thepartsrecord component.Returns the value of thestorageClassrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.uploadId()Returns the value of theuploadIdrecord component.
-
Constructor Details
-
ListPartsResult
public ListPartsResult(String bucket, String key, String uploadId, String partNumberMarker, String nextPartNumberMarker, boolean truncated, StorageClass storageClass, List<Part> parts, Owner owner, Owner initiator, ChecksumAlgorithm checksumAlgorithm) Creates an instance of aListPartsResultrecord class.- Parameters:
bucket- the value for thebucketrecord componentkey- the value for thekeyrecord componentuploadId- the value for theuploadIdrecord componentpartNumberMarker- the value for thepartNumberMarkerrecord componentnextPartNumberMarker- the value for thenextPartNumberMarkerrecord componenttruncated- the value for thetruncatedrecord componentstorageClass- the value for thestorageClassrecord componentparts- the value for thepartsrecord componentowner- the value for theownerrecord componentinitiator- the value for theinitiatorrecord componentchecksumAlgorithm- the value for thechecksumAlgorithmrecord component
-
ListPartsResult
-
-
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 '=='. -
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
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
-
partNumberMarker
Returns the value of thepartNumberMarkerrecord component.- Returns:
- the value of the
partNumberMarkerrecord component
-
nextPartNumberMarker
Returns the value of thenextPartNumberMarkerrecord component.- Returns:
- the value of the
nextPartNumberMarkerrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
storageClass
Returns the value of thestorageClassrecord component.- Returns:
- the value of the
storageClassrecord component
-
parts
Returns the value of thepartsrecord component.- Returns:
- the value of the
partsrecord 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
-
checksumAlgorithm
Returns the value of thechecksumAlgorithmrecord component.- Returns:
- the value of the
checksumAlgorithmrecord component
-