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 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 a ListPartsResult record class.
      Parameters:
      bucket - the value for the bucket record component
      key - the value for the key record component
      uploadId - the value for the uploadId record component
      partNumberMarker - the value for the partNumberMarker record component
      nextPartNumberMarker - the value for the nextPartNumberMarker record component
      truncated - the value for the truncated record component
      storageClass - the value for the storageClass record component
      parts - the value for the parts record component
      owner - the value for the owner record component
      initiator - the value for the initiator record component
      checksumAlgorithm - the value for the checksumAlgorithm record component
    • ListPartsResult

      public ListPartsResult(String bucketName, String key, String uploadId, List<Part> parts)
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • bucket

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

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • uploadId

      public String uploadId()
      Returns the value of the uploadId record component.
      Returns:
      the value of the uploadId record component
    • partNumberMarker

      public String partNumberMarker()
      Returns the value of the partNumberMarker record component.
      Returns:
      the value of the partNumberMarker record component
    • nextPartNumberMarker

      public String nextPartNumberMarker()
      Returns the value of the nextPartNumberMarker record component.
      Returns:
      the value of the nextPartNumberMarker record component
    • truncated

      public boolean truncated()
      Returns the value of the truncated record component.
      Returns:
      the value of the truncated record component
    • storageClass

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

      public List<Part> parts()
      Returns the value of the parts record component.
      Returns:
      the value of the parts record component
    • owner

      public Owner owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • initiator

      public Owner initiator()
      Returns the value of the initiator record component.
      Returns:
      the value of the initiator record component
    • checksumAlgorithm

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