public class ListObjectsV2Request extends GenericRequest
NOOP| 构造器和说明 |
|---|
ListObjectsV2Request() |
ListObjectsV2Request(String bucketName)
Constructs a new
ListObjectsRequest object and initializes the bucketName parameter. |
ListObjectsV2Request(String bucketName,
String prefix)
Constructs a new
ListObjectsRequest object and
initializes the bucketName and prefix parameters. |
ListObjectsV2Request(String bucketName,
String prefix,
String continuationToken,
String startAfter,
String delimiter,
Integer maxKeys,
String encodingType,
boolean fetchOwner)
Constructs a new
ListObjectsRequest object and initializes all optional parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getContinuationToken()
Gets the optional continuation token.
|
String |
getDelimiter()
Gets the optional delimiter parameter that causes keys that contain
the same string between the prefix and the first occurrence of the
delimiter to be combined into a single result element in the
ListObjectsV2Result.getCommonPrefixes() list. |
String |
getEncodingType()
Gets the optional encodingType parameter indicating the
encoding method to be applied on the response.
|
Integer |
getMaxKeys()
Gets the optional parameter indicating the maximum number of keys to
include in the response.
|
String |
getPrefix()
Gets the optional prefix parameter and restricts the response to keys
that begin with the specified prefix.
|
String |
getStartAfter()
Returns optional parameter indicating where you want OSS to start the object
listing from.
|
boolean |
isFetchOwner()
Returns if fetch owner is set.
|
void |
setContinuationToken(String continuationToken)
Sets the optional continuation token.
|
void |
setDelimiter(String delimiter)
Sets the optional delimiter parameter that causes keys that contain the
same string between the prefix and the first occurrence of the delimiter
to be combined into a single result element in the
ListObjectsV2Result.getCommonPrefixes() list. |
void |
setEncodingType(String encodingType)
Sets the optional parameter indicating the
encoding method to be applied on the response.
|
void |
setFetchOwner(boolean fetchOwner)
Sets the optional fetch owner flag.
|
void |
setMaxKeys(Integer maxKeys)
Sets the optional parameter indicating the maximum number of keys to
include in the response.
|
void |
setPrefix(String prefix)
Sets the optional prefix parameter, restricting the response to keys that
begin with the specified prefix.
|
void |
setStartAfter(String startAfter)
Sets the optional parameter indicating where you want OSS to start the object
listing from.
|
ListObjectsV2Request |
withBucketName(String bucketName) |
ListObjectsV2Request |
withContinuationToken(String continuationToken)
Sets the optional continuation token.
|
ListObjectsV2Request |
withDelimiter(String delimiter)
Sets the optional delimiter parameter that causes keys that contain the
same string between the prefix and the first occurrence of the delimiter
to be rolled up into a single result element in the
ListObjectsV2Result.getCommonPrefixes() list. |
ListObjectsV2Request |
withEncodingType(String encodingType)
Sets the optional parameter indicating the
encoding method to be applied on the response.
|
ListObjectsV2Request |
withFetchOwner(boolean fetchOwner)
Sets the optional fetch owner flag.
|
ListObjectsV2Request |
withMaxKeys(Integer maxKeys)
Sets the optional parameter indicating the maximum number of keys to
include in the response.
|
ListObjectsV2Request |
withPrefix(String prefix)
Sets the optional prefix parameter restricting the response to keys that
begin with the specified prefix.
|
ListObjectsV2Request |
withStartAfter(String startAfter)
Sets the optional parameter indicating where you want OSS to start the object
listing from.
|
getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withKey, withRequestPayer, withVersionIdpublic ListObjectsV2Request()
public ListObjectsV2Request(String bucketName)
ListObjectsRequest object and initializes the bucketName parameter.bucketName - The bucket name.public ListObjectsV2Request(String bucketName, String prefix)
ListObjectsRequest object and
initializes the bucketName and prefix parameters.bucketName - The bucket name.prefix - The prefix restricting the objects listing.public ListObjectsV2Request(String bucketName, String prefix, String continuationToken, String startAfter, String delimiter, Integer maxKeys, String encodingType, boolean fetchOwner)
ListObjectsRequest object and initializes all optional parameters.bucketName - The bucket name.prefix - The prefix restricting the objects listing.continuationToken - The continuation token allows list to be continued from a specific point.
It values the last result ListObjectsV2Result.getNextContinuationToken().startAfter - Where you want oss to start the object listing from.delimiter - The delimiter for condensing common prefixes in the returned listing results.maxKeys - The maximum number of results to return.encodingType - the encoding method to be applied on the response.fetchOwner - Whether to get the owner filed in the response or not.public ListObjectsV2Request withBucketName(String bucketName)
withBucketName 在类中 GenericRequestbucketName - The name of the bucket that you want to listing.ListObjectsRequest, enabling additional method
calls to be chained together.public String getDelimiter()
ListObjectsV2Result.getCommonPrefixes() list. These combined keys
are not returned elsewhere in the response. The most commonly used
delimiter is "/", which simulates a hierarchical organization similar to
a file system directory structure.ListObjectsV2Result.getCommonPrefixes() list.public void setDelimiter(String delimiter)
ListObjectsV2Result.getCommonPrefixes() list.delimiter - The optional delimiter parameter that causes keys that contain
the same string between the prefix and the first occurrence of
the delimiter to be combined into a single result element in
the ListObjectsV2Result.getCommonPrefixes() list.public ListObjectsV2Request withDelimiter(String delimiter)
ListObjectsV2Result.getCommonPrefixes() list.
Returns this ListObjectsRequest, enabling additional method
calls to be chained together.delimiter - The optional delimiter parameter that causes keys that contain
the same string between the prefix and the first occurrence of
the delimiter to be rolled up into a single result element in
the ListObjectsV2Result.getCommonPrefixes() list.ListObjectsRequest, enabling additional method
calls to be chained together.public String getEncodingType()
public void setEncodingType(String encodingType)
encodingType - The encoding method to be applied on the response. Valid
values: null (not encoded) or "url".public ListObjectsV2Request withEncodingType(String encodingType)
ListObjectsV2Request, enabling additional method calls
to be chained together.encodingType - The encoding method to be applied on the response. Valid
values: null (not encoded) or "url".public Integer getMaxKeys()
public void setMaxKeys(Integer maxKeys)
maxKeys - The optional parameter indicating the maximum number of keys
to include in the response.public ListObjectsV2Request withMaxKeys(Integer maxKeys)
ListObjectsV2Request, enabling additional method
calls to be chained together.maxKeys - The optional parameter indicating the maximum number of keys
to include in the response.ListObjectsV2Request, enabling additional method
calls to be chained together.getMaxKeys(),
setMaxKeys(Integer)public String getPrefix()
public void setPrefix(String prefix)
prefix - The optional prefix parameter, restricting the response to keys
that begin with the specified prefix.public ListObjectsV2Request withPrefix(String prefix)
ListObjectsV2Request, enabling additional method
calls to be chained together.prefix - The optional prefix parameter restricting the response to keys
that begin with the specified prefix.ListObjectsV2Request, enabling additional method
calls to be chained together.public String getContinuationToken()
public void setContinuationToken(String continuationToken)
continuationToken - The optional continuation token to associate with this request.public ListObjectsV2Request withContinuationToken(String continuationToken)
continuationToken - The optional continuation token to associate with this request.ListObjectsV2Request, enabling additional method
calls to be chained together.public boolean isFetchOwner()
public void setFetchOwner(boolean fetchOwner)
fetchOwner - Set to true if the owner field should be included in resultspublic ListObjectsV2Request withFetchOwner(boolean fetchOwner)
OSSObjectSummary.fetchOwner - Set to true if the owner field should be included in resultsListObjectsV2Request, enabling additional method
calls to be chained together.public String getStartAfter()
public void setStartAfter(String startAfter)
startAfter - The optional startAfter parameter. This can be any key in the bucket.public ListObjectsV2Request withStartAfter(String startAfter)
startAfter - The optional startAfter parameter.ListObjectsV2Request, enabling additional method
calls to be chained together.Copyright © 2020. All Rights Reserved.