Package com.adobe.testing.s3mock.dto
Record Class ListBucketResultV2
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.ListBucketResultV2
public record ListBucketResultV2(String name, String prefix, int maxKeys, boolean isTruncated, List<S3Object> contents, List<Prefix> commonPrefixes, String continuationToken, String keyCount, String nextContinuationToken, String startAfter, String encodingType)
extends Record
Represents a result of listing objects that reside in a Bucket.
API Reference
-
Constructor Summary
ConstructorsConstructorDescriptionListBucketResultV2(String name, String prefix, int maxKeys, boolean isTruncated, List<S3Object> contents, List<Prefix> commonPrefixes, String continuationToken, String keyCount, String nextContinuationToken, String startAfter, String encodingType) Creates an instance of aListBucketResultV2record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommonPrefixesrecord component.contents()Returns the value of thecontentsrecord component.Returns the value of thecontinuationTokenrecord 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.keyCount()Returns the value of thekeyCountrecord component.intmaxKeys()Returns the value of themaxKeysrecord component.name()Returns the value of thenamerecord component.Returns the value of thenextContinuationTokenrecord component.prefix()Returns the value of theprefixrecord component.Returns the value of thestartAfterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListBucketResultV2
public ListBucketResultV2(String name, String prefix, int maxKeys, boolean isTruncated, List<S3Object> contents, List<Prefix> commonPrefixes, String continuationToken, String keyCount, String nextContinuationToken, String startAfter, String encodingType) Creates an instance of aListBucketResultV2record class.- Parameters:
name- the value for thenamerecord componentprefix- the value for theprefixrecord componentmaxKeys- the value for themaxKeysrecord componentisTruncated- the value for theisTruncatedrecord componentcontents- the value for thecontentsrecord componentcommonPrefixes- the value for thecommonPrefixesrecord componentcontinuationToken- the value for thecontinuationTokenrecord componentkeyCount- the value for thekeyCountrecord componentnextContinuationToken- the value for thenextContinuationTokenrecord componentstartAfter- the value for thestartAfterrecord componentencodingType- the value for theencodingTyperecord 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
-
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
commonPrefixes
Returns the value of thecommonPrefixesrecord component.- Returns:
- the value of the
commonPrefixesrecord component
-
continuationToken
Returns the value of thecontinuationTokenrecord component.- Returns:
- the value of the
continuationTokenrecord component
-
keyCount
Returns the value of thekeyCountrecord component.- Returns:
- the value of the
keyCountrecord component
-
nextContinuationToken
Returns the value of thenextContinuationTokenrecord component.- Returns:
- the value of the
nextContinuationTokenrecord component
-
startAfter
Returns the value of thestartAfterrecord component.- Returns:
- the value of the
startAfterrecord component
-
encodingType
Returns the value of theencodingTyperecord component.- Returns:
- the value of the
encodingTyperecord component
-