Package com.adobe.testing.s3mock.dto
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 Summary
ConstructorsConstructorDescriptionListVersionsResult(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 aListVersionsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommonPrefixesrecord component.Returns the value of thedeleteMarkersrecord component.Returns the value of thedelimiterrecord component.Returns the value of theencodingTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTruncatedrecord component.Returns the value of thekeyMarkerrecord component.intmaxKeys()Returns the value of themaxKeysrecord component.name()Returns the value of thenamerecord component.Returns the value of thenextKeyMarkerrecord component.Returns the value of thenextVersionIdMarkerrecord component.Returns the value of theobjectVersionsrecord component.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionIdMarkerrecord component.
-
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 aListVersionsResultrecord class.- Parameters:
name- the value for thenamerecord componentprefix- the value for theprefixrecord componentmaxKeys- the value for themaxKeysrecord componentisTruncated- the value for theisTruncatedrecord componentcommonPrefixes- the value for thecommonPrefixesrecord componentdelimiter- the value for thedelimiterrecord componentencodingType- the value for theencodingTyperecord componentkeyMarker- the value for thekeyMarkerrecord componentversionIdMarker- the value for theversionIdMarkerrecord componentnextKeyMarker- the value for thenextKeyMarkerrecord componentnextVersionIdMarker- the value for thenextVersionIdMarkerrecord componentobjectVersions- the value for theobjectVersionsrecord componentdeleteMarkers- the value for thedeleteMarkersrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
maxKeys
public int maxKeys()Returns the value of themaxKeysrecord component.- Returns:
- the value of the
maxKeysrecord component
-
isTruncated
public boolean isTruncated()Returns the value of theisTruncatedrecord component.- Returns:
- the value of the
isTruncatedrecord component
-
commonPrefixes
Returns the value of thecommonPrefixesrecord component.- Returns:
- the value of the
commonPrefixesrecord component
-
delimiter
Returns the value of thedelimiterrecord component.- Returns:
- the value of the
delimiterrecord component
-
encodingType
Returns the value of theencodingTyperecord component.- Returns:
- the value of the
encodingTyperecord component
-
keyMarker
Returns the value of thekeyMarkerrecord component.- Returns:
- the value of the
keyMarkerrecord component
-
versionIdMarker
Returns the value of theversionIdMarkerrecord component.- Returns:
- the value of the
versionIdMarkerrecord component
-
nextKeyMarker
Returns the value of thenextKeyMarkerrecord component.- Returns:
- the value of the
nextKeyMarkerrecord component
-
nextVersionIdMarker
Returns the value of thenextVersionIdMarkerrecord component.- Returns:
- the value of the
nextVersionIdMarkerrecord component
-
objectVersions
Returns the value of theobjectVersionsrecord component.- Returns:
- the value of the
objectVersionsrecord component
-
deleteMarkers
Returns the value of thedeleteMarkersrecord component.- Returns:
- the value of the
deleteMarkersrecord component
-