public class ListObjectsV2Result extends GenericResult
Constructor and Description |
---|
ListObjectsV2Result() |
Modifier and Type | Method and Description |
---|---|
void |
addCommonPrefix(String commonPrefix)
adds a common prefix element to the common prefixes list
|
void |
addObjectSummary(OSSObjectSummary objectSummary)
Add the object summary to the list of the object summaries
|
String |
getBucketName()
Gets the bucket name that containing the objects listing
|
List<String> |
getCommonPrefixes()
Gets the common prefixes included in this object listing.
|
String |
getContinuationToken()
Gets the continuation token.
|
String |
getDelimiter()
Gets the delimiter parameter that you have specified.
|
String |
getEncodingType()
Gets the encoding type used by OSS to encode object key names in
the XML response.
|
int |
getKeyCount()
Gets the number of keys returned with this response.
|
int |
getMaxKeys()
Gets the the maximum number of keys to include in the response.
|
String |
getNextContinuationToken()
Gets the nextContinuationToken.
|
List<OSSObjectSummary> |
getObjectSummaries()
Gets the list of object summaries describing the objects stored in the bucket.
|
String |
getPrefix()
The prefix parameter originally specified by the caller when this object
listing was returned
|
String |
getStartAfter()
Returns optional parameter indicating where you want OSS to start the object
listing from.
|
boolean |
isTruncated()
Gets whether or not this object listing is complete.
|
void |
setBucketName(String bucketName)
Sets the bucket name that containing the objects listing
|
void |
setContinuationToken(String continuationToken)
Sets the continuation token.
|
void |
setDelimiter(String delimiter)
Sets the delimiter parameter.
|
void |
setEncodingType(String encodingType)
Sets the encode type that responded.
|
void |
setKeyCount(int keyCount)
Sets the number of keys returned with this response.
|
void |
setMaxKeys(int maxKeys)
Sets the the maximum number of keys to include in the response.
|
void |
setNextContinuationToken(String nextContinuationToken)
Sets the nextContinuationToken.
|
void |
setPrefix(String prefix)
Sets the prefix parameter
|
void |
setStartAfter(String startAfter)
Sets the optional parameter indicating where you want OSS to start the object
listing from.
|
void |
setTruncated(boolean isTruncated)
Sets whether or not this object listing is complete.
|
getClientCRC, getRequestId, getResponse, getServerCRC, setClientCRC, setRequestId, setResponse, setServerCRC
public List<OSSObjectSummary> getObjectSummaries()
OSSObjectSummary
instance.public void addObjectSummary(OSSObjectSummary objectSummary)
objectSummary
- The OSSObjectSummary
instance.public List<String> getCommonPrefixes()
ListObjectsV2Result
object will contain the common prefix of "fun/movie/".public void addCommonPrefix(String commonPrefix)
commonPrefix
- prefix element to the common prefixes list.public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- bucket name that containing the objects listing.public String getPrefix()
public void setPrefix(String prefix)
prefix
- The prefix parameter originally used to request this object
listing.public int getMaxKeys()
public void setMaxKeys(int maxKeys)
maxKeys
- The optional parameter indicating the maximum number of keys
to include in the response.public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- The delimiter parameter originally used to request this object
listing. Returns null if no delimiter was specified.public String getEncodingType()
public void setEncodingType(String encodingType)
encodingType
- the encode type that the response contains.public boolean isTruncated()
public void setTruncated(boolean isTruncated)
isTruncated
- the value true if the listing is truncated
and return false if the listing is complete.public int getKeyCount()
public void setKeyCount(int keyCount)
keyCount
- The number of keys that were returned with this response.public String getContinuationToken()
public void setContinuationToken(String continuationToken)
continuationToken
- The parameter should be set with the value of
getNextContinuationToken()
public String getNextContinuationToken()
public void setNextContinuationToken(String nextContinuationToken)
nextContinuationToken
- The optional NextContinuationToken returned and can be used for the next request.public String getStartAfter()
public void setStartAfter(String startAfter)
startAfter
- The optional startAfter parameter.Copyright © 2024. All Rights Reserved.