@Generated(value="software.amazon.awssdk:codegen") public final class ListObjectsV2Response extends S3Response implements ToCopyableBuilder<ListObjectsV2Response.Builder,ListObjectsV2Response>
Modifier and Type | Class and Description |
---|---|
static interface |
ListObjectsV2Response.Builder |
Modifier and Type | Method and Description |
---|---|
static ListObjectsV2Response.Builder |
builder() |
List<CommonPrefix> |
commonPrefixes()
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string
specified by delimiter
|
List<S3Object> |
contents()
Metadata about each object returned.
|
String |
continuationToken()
ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token.
|
String |
delimiter()
A delimiter is a character you use to group keys.
|
EncodingType |
encodingType()
Encoding type used by Amazon S3 to encode object keys in the response.
|
String |
encodingTypeAsString()
Encoding type used by Amazon S3 to encode object keys in the response.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
Boolean |
isTruncated()
A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.
|
Integer |
keyCount()
KeyCount is the number of keys returned with this request.
|
Integer |
maxKeys()
Sets the maximum number of keys returned in the response.
|
String |
name()
Name of the bucket to list.
|
String |
nextContinuationToken()
NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be
listed.
|
String |
prefix()
Limits the response to keys that begin with the specified prefix.
|
static Class<? extends ListObjectsV2Response.Builder> |
serializableBuilderClass() |
String |
startAfter()
StartAfter is where you want Amazon S3 to start listing from.
|
ListObjectsV2Response.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
sdkHttpResponse
copy
public Boolean isTruncated()
public List<S3Object> contents()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String name()
public String prefix()
public String delimiter()
public Integer maxKeys()
public List<CommonPrefix> commonPrefixes()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public EncodingType encodingType()
If the service returns an enum value that is not available in the current SDK version, encodingType
will
return EncodingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
encodingTypeAsString()
.
EncodingType
public String encodingTypeAsString()
If the service returns an enum value that is not available in the current SDK version, encodingType
will
return EncodingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
encodingTypeAsString()
.
EncodingType
public Integer keyCount()
public String continuationToken()
public String nextContinuationToken()
public String startAfter()
public ListObjectsV2Response.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ListObjectsV2Response.Builder,ListObjectsV2Response>
toBuilder
in class AwsResponse
public static ListObjectsV2Response.Builder builder()
public static Class<? extends ListObjectsV2Response.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.