Record Class ListVersionsResult

java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.ListVersionsResult

public record ListVersionsResult(String name, String prefix, int maxKeys, boolean isTruncated, List<Prefix> commonPrefixes, String delimiter, String encodingType, String keyMarker, String versionIdMarker, String nextKeyMarker, String nextVersionIdMarker, List<ObjectVersion> objectVersions, List<DeleteMarkerEntry> deleteMarkers) extends Record
Represents a result of listing object versions that reside in a Bucket. API Reference
  • Constructor Details

    • ListVersionsResult

      public ListVersionsResult(String name, String prefix, int maxKeys, boolean isTruncated, List<Prefix> commonPrefixes, String delimiter, String encodingType, String keyMarker, String versionIdMarker, String nextKeyMarker, String nextVersionIdMarker, List<ObjectVersion> objectVersions, List<DeleteMarkerEntry> deleteMarkers)
      Creates an instance of a ListVersionsResult record class.
      Parameters:
      name - the value for the name record component
      prefix - the value for the prefix record component
      maxKeys - the value for the maxKeys record component
      isTruncated - the value for the isTruncated record component
      commonPrefixes - the value for the commonPrefixes record component
      delimiter - the value for the delimiter record component
      encodingType - the value for the encodingType record component
      keyMarker - the value for the keyMarker record component
      versionIdMarker - the value for the versionIdMarker record component
      nextKeyMarker - the value for the nextKeyMarker record component
      nextVersionIdMarker - the value for the nextVersionIdMarker record component
      objectVersions - the value for the objectVersions record component
      deleteMarkers - the value for the deleteMarkers 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. 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • prefix

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • maxKeys

      public int maxKeys()
      Returns the value of the maxKeys record component.
      Returns:
      the value of the maxKeys record component
    • isTruncated

      public boolean isTruncated()
      Returns the value of the isTruncated record component.
      Returns:
      the value of the isTruncated record component
    • commonPrefixes

      public List<Prefix> commonPrefixes()
      Returns the value of the commonPrefixes record component.
      Returns:
      the value of the commonPrefixes record component
    • delimiter

      public String delimiter()
      Returns the value of the delimiter record component.
      Returns:
      the value of the delimiter record component
    • encodingType

      public String encodingType()
      Returns the value of the encodingType record component.
      Returns:
      the value of the encodingType record component
    • keyMarker

      public String keyMarker()
      Returns the value of the keyMarker record component.
      Returns:
      the value of the keyMarker record component
    • versionIdMarker

      public String versionIdMarker()
      Returns the value of the versionIdMarker record component.
      Returns:
      the value of the versionIdMarker record component
    • nextKeyMarker

      public String nextKeyMarker()
      Returns the value of the nextKeyMarker record component.
      Returns:
      the value of the nextKeyMarker record component
    • nextVersionIdMarker

      public String nextVersionIdMarker()
      Returns the value of the nextVersionIdMarker record component.
      Returns:
      the value of the nextVersionIdMarker record component
    • objectVersions

      public List<ObjectVersion> objectVersions()
      Returns the value of the objectVersions record component.
      Returns:
      the value of the objectVersions record component
    • deleteMarkers

      public List<DeleteMarkerEntry> deleteMarkers()
      Returns the value of the deleteMarkers record component.
      Returns:
      the value of the deleteMarkers record component