public static interface ListObjectsV2Response.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<ListObjectsV2Response.Builder,ListObjectsV2Response>
Modifier and Type | Method and Description |
---|---|
ListObjectsV2Response.Builder |
commonPrefixes(Collection<CommonPrefix> commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string
specified by delimiter
|
ListObjectsV2Response.Builder |
commonPrefixes(CommonPrefix... commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string
specified by delimiter
|
ListObjectsV2Response.Builder |
commonPrefixes(Consumer<CommonPrefix.Builder>... commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string
specified by delimiter
|
ListObjectsV2Response.Builder |
contents(Collection<S3Object> contents)
Metadata about each object returned.
|
ListObjectsV2Response.Builder |
contents(Consumer<S3Object.Builder>... contents)
Metadata about each object returned.
|
ListObjectsV2Response.Builder |
contents(S3Object... contents)
Metadata about each object returned.
|
ListObjectsV2Response.Builder |
continuationToken(String continuationToken)
ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token.
|
ListObjectsV2Response.Builder |
delimiter(String delimiter)
A delimiter is a character you use to group keys.
|
ListObjectsV2Response.Builder |
encodingType(EncodingType encodingType)
Encoding type used by Amazon S3 to encode object keys in the response.
|
ListObjectsV2Response.Builder |
encodingType(String encodingType)
Encoding type used by Amazon S3 to encode object keys in the response.
|
ListObjectsV2Response.Builder |
isTruncated(Boolean isTruncated)
A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search
criteria.
|
ListObjectsV2Response.Builder |
keyCount(Integer keyCount)
KeyCount is the number of keys returned with this request.
|
ListObjectsV2Response.Builder |
maxKeys(Integer maxKeys)
Sets the maximum number of keys returned in the response.
|
ListObjectsV2Response.Builder |
name(String name)
Name of the bucket to list.
|
ListObjectsV2Response.Builder |
nextContinuationToken(String nextContinuationToken)
NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can
be listed.
|
ListObjectsV2Response.Builder |
prefix(String prefix)
Limits the response to keys that begin with the specified prefix.
|
ListObjectsV2Response.Builder |
startAfter(String startAfter)
StartAfter is where you want Amazon S3 to start listing from.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
ListObjectsV2Response.Builder isTruncated(Boolean isTruncated)
A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.
isTruncated
- A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search
criteria.ListObjectsV2Response.Builder contents(Collection<S3Object> contents)
Metadata about each object returned.
contents
- Metadata about each object returned.ListObjectsV2Response.Builder contents(S3Object... contents)
Metadata about each object returned.
contents
- Metadata about each object returned.ListObjectsV2Response.Builder contents(Consumer<S3Object.Builder>... contents)
Metadata about each object returned.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #contents(List)
.contents
- a consumer that will call methods on List.Builder
#contents(List)
ListObjectsV2Response.Builder name(String name)
Name of the bucket to list.
name
- Name of the bucket to list.ListObjectsV2Response.Builder prefix(String prefix)
Limits the response to keys that begin with the specified prefix.
prefix
- Limits the response to keys that begin with the specified prefix.ListObjectsV2Response.Builder delimiter(String delimiter)
A delimiter is a character you use to group keys.
delimiter
- A delimiter is a character you use to group keys.ListObjectsV2Response.Builder maxKeys(Integer maxKeys)
Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.
maxKeys
- Sets the maximum number of keys returned in the response. The response might contain fewer keys but
will never contain more.ListObjectsV2Response.Builder commonPrefixes(Collection<CommonPrefix> commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiter
commonPrefixes
- CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the
string specified by delimiterListObjectsV2Response.Builder commonPrefixes(CommonPrefix... commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiter
commonPrefixes
- CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the
string specified by delimiterListObjectsV2Response.Builder commonPrefixes(Consumer<CommonPrefix.Builder>... commonPrefixes)
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiter
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #commonPrefixes(List)
.commonPrefixes
- a consumer that will call methods on List.Builder
#commonPrefixes(List)
ListObjectsV2Response.Builder encodingType(String encodingType)
Encoding type used by Amazon S3 to encode object keys in the response.
encodingType
- Encoding type used by Amazon S3 to encode object keys in the response.EncodingType
,
EncodingType
ListObjectsV2Response.Builder encodingType(EncodingType encodingType)
Encoding type used by Amazon S3 to encode object keys in the response.
encodingType
- Encoding type used by Amazon S3 to encode object keys in the response.EncodingType
,
EncodingType
ListObjectsV2Response.Builder keyCount(Integer keyCount)
KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keys
keyCount
- KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to
MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keysListObjectsV2Response.Builder continuationToken(String continuationToken)
ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key
continuationToken
- ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token.
ContinuationToken is obfuscated and is not a real keyListObjectsV2Response.Builder nextContinuationToken(String nextContinuationToken)
NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key
nextContinuationToken
- NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket
that can be listed. The next list requests to Amazon S3 can be continued with this
NextContinuationToken. NextContinuationToken is obfuscated and is not a real keyListObjectsV2Response.Builder startAfter(String startAfter)
StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket
startAfter
- StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this
specified key. StartAfter can be any key in the bucketCopyright © 2019. All rights reserved.