public class ListObjectsRequest extends GenericBucketRequest
| Constructor and Description |
|---|
ListObjectsRequest(String bucketName)
Constructs a new ListObjectsRequest object and initializes all required and optional object fields.
|
ListObjectsRequest(String bucketName,
String prefix)
Constructs a new ListObjectsRequest object and initializes all required and optional object fields.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getMarker()
Gets the optional marker parameter indicating where in the bucket to begin
listing.
|
int |
getMaxKeys()
Gets the optional
maxKeys 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.
|
boolean |
isNeedExtMeta() |
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.
|
void |
setMarker(String marker)
Sets the optional marker parameter indicating where in the bucket to begin
listing.
|
void |
setMaxKeys(int maxKeys)
Sets the optional
maxKeys parameter indicating the maximum number of keys to
include in the response. |
void |
setNeedExtMeta(boolean needExtMeta) |
void |
setPrefix(String prefix)
Sets the optional prefix parameter, restricting the response to keys that
begin with the specified prefix.
|
ListObjectsRequest |
withBucketName(String bucketName)
Sets the name of the Baidu Bos bucket whose objects are to be listed.
|
ListObjectsRequest |
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.
|
ListObjectsRequest |
withMarker(String marker)
Sets the optional marker parameter indicating where in the bucket to begin listing.
|
ListObjectsRequest |
withMaxKeys(int maxKeys)
Sets the optional
maxKeys parameter indicating the maximum number of keys to
include in the response. |
ListObjectsRequest |
withPrefix(String prefix)
Sets the optional prefix parameter restricting the response to keys that
begin with the specified prefix.
|
ListObjectsRequest |
withRequestCredentials(BceCredentials credentials) |
getBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic ListObjectsRequest(String bucketName)
bucketName - The name of the bucket whose objects are to be listed.public ListObjectsRequest(String bucketName, String prefix)
bucketName - The name of the bucket whose objects are to be listed.prefix - The prefix restricting what keys will be listed.public ListObjectsRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic ListObjectsRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestbucketName - The name of the Baidu Bos bucket whose objects are to be listed.ListObjectsRequest, enabling additional method calls to be chained together.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 ListObjectsRequest withPrefix(String prefix)
prefix - The optional prefix parameter restricting the response to keys
that begin with the specified prefix.public String getMarker()
public void setMarker(String marker)
marker - The optional marker parameter indicating where in the bucket to begin
listing. The list will only include keys that occur lexicographically after the marker.public ListObjectsRequest withMarker(String marker)
marker - The optional parameter indicating where in the bucket to begin
listing. The list will only include keys that occur lexicographically after the marker.public String getDelimiter()
public void setDelimiter(String delimiter)
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.public ListObjectsRequest withDelimiter(String delimiter)
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.getDelimiter(),
setDelimiter(String)public int getMaxKeys()
maxKeys parameter indicating the maximum number of keys to
include in the response. Baidu Bos might return fewer keys than specified, but will
never return more. Even if the optional parameter is not specified,
Baidu Bos will limit the number of results in the response.public void setMaxKeys(int maxKeys)
maxKeys parameter indicating the maximum number of keys to
include in the response.maxKeys - The optional parameter indicating the maximum number of keys to include in the response.public ListObjectsRequest withMaxKeys(int maxKeys)
maxKeys parameter indicating the maximum number of keys to
include in the response.
Returns this ListObjectsRequest, enabling additional method calls to be chained together.maxKeys - The optional parameter indicating the maximum number of keys to include in the response.public boolean isNeedExtMeta()
public void setNeedExtMeta(boolean needExtMeta)
Copyright © 2024. All rights reserved.