public class ListObjectsRequest extends GenericRequest
NOOP
构造器和说明 |
---|
ListObjectsRequest() |
ListObjectsRequest(String bucketName) |
ListObjectsRequest(String bucketName,
String prefix,
String marker,
String delimiter,
Integer maxKeys)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
String |
getDelimiter()
Gets the delimiter of object names.
|
String |
getEncodingType()
Gets the encoding type of object names in response body.
|
String |
getMarker()
Gets the marker filter.
|
Integer |
getMaxKeys()
Gets the max objects to return.
|
String |
getPrefix()
Gets the prefix filter.
|
void |
setDelimiter(String delimiter)
Sets the delimiter.
|
void |
setEncodingType(String encodingType)
Sets the encoding type of object names in response body.
|
void |
setMarker(String marker)
Sets the marker filter.
|
void |
setMaxKeys(Integer maxKeys)
Sets the max objects to return.
|
void |
setPrefix(String prefix)
Sets the prefix filter.
|
ListObjectsRequest |
withDelimiter(String delimiter)
Sets the delimiter and returns the current ListObjectsRequest instance
(this).
|
ListObjectsRequest |
withEncodingType(String encodingType)
Sets the encoding type of object names in response body and returns the
current ListObjectsRequest instance (this).
|
ListObjectsRequest |
withMarker(String marker)
Sets the mark filter and returns the current ListObjectsRequest instance
(this).
|
ListObjectsRequest |
withMaxKeys(Integer maxKeys)
Sets the max objects and returns the current ListObjectsRequest instance
(this).
|
ListObjectsRequest |
withPrefix(String prefix)
Sets teh prefix filter and return the current ListObjectsRequest instance
(this).
|
getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId
public ListObjectsRequest()
public ListObjectsRequest(String bucketName)
public ListObjectsRequest(String bucketName, String prefix, String marker, String delimiter, Integer maxKeys)
bucketName
- Bucket name.prefix
- The prefix filter---Objects to return must start with this
prefix in their names.marker
- The marker filter---Objects to return whose names must be
greater than this marker value.maxKeys
- The max object counts to return. The default is 100.delimiter
- The delimiter for the object names to return.public String getPrefix()
public void setPrefix(String prefix)
prefix
- The prefix filter.public ListObjectsRequest withPrefix(String prefix)
prefix
- The prefix filter.public String getMarker()
public void setMarker(String marker)
marker
- The marker filter.public ListObjectsRequest withMarker(String marker)
marker
- markerpublic Integer getMaxKeys()
public void setMaxKeys(Integer maxKeys)
maxKeys
- The max objects to return. The max value is 1000.public ListObjectsRequest withMaxKeys(Integer maxKeys)
maxKeys
- The max objects to return.public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- the delimiter to setpublic ListObjectsRequest withDelimiter(String delimiter)
delimiter
- the delimiter to setpublic String getEncodingType()
public void setEncodingType(String encodingType)
encodingType
- The encoding type of object names in response body. Valid
values are 'null' or 'url'.public ListObjectsRequest withEncodingType(String encodingType)
encodingType
- The encoding type of object names in response body. Valid
values are 'null' or 'url'.Copyright © 2019. All Rights Reserved.