|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.s3.model.VersionListing
public class VersionListing
Contains the results of listing the versions in an Amazon S3 bucket,
including a list of S3VersionSummary
objects describing each version,
information describing if this is a complete or partial listing, and the
original request parameters.
AmazonS3.listVersions(String, String)
,
AmazonS3.listVersions(ListVersionsRequest)
,
AmazonS3.listNextBatchOfVersions(VersionListing)
Constructor Summary | |
---|---|
VersionListing()
|
Method Summary | |
---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket containing the versions listed in this S3VersionListing. |
List<String> |
getCommonPrefixes()
Returns the common prefixes included in this version listing. |
String |
getDelimiter()
Returns the delimiter parameter originally used to request this version listing, or null if none was specified. |
String |
getKeyMarker()
The key marker parameter originally used to request this version listing, or null if no key marker was specified. |
int |
getMaxKeys()
Returns the maxKeys parameter originally used to request this version listing, or the default maxKeys value provided by Amazon S3 if the requester didn't specify a value. |
String |
getNextKeyMarker()
For truncated version listings (see isTruncated() ) returns the key marker to use in
the next listVersions request in order to see the next page of results. |
String |
getNextVersionIdMarker()
For truncated version listings (see isTruncated() ) returns the version ID marker to
use in the next listVersions request in order to see the next page of
results. |
String |
getPrefix()
The prefix parameter originally used to request this version listing, or null if no prefix was specified. |
String |
getVersionIdMarker()
The version ID marker parameter originally used to request this version listing, or null if no version ID marker was specified. |
List<S3VersionSummary> |
getVersionSummaries()
Returns the list of version summaries describing the versions stored in the associated S3 bucket. |
boolean |
isTruncated()
Returns true if this version listing is not complete and indicates that the caller needs to make additional calls to Amazon S3 to get more results. |
void |
setBucketName(String bucketName)
Not intended for direct use by callers. |
void |
setCommonPrefixes(List<String> commonPrefixes)
Not intended for direct use by callers. |
void |
setDelimiter(String delimiter)
Not intended for direct use by callers. |
void |
setKeyMarker(String keyMarker)
Not intended for direct use by callers. |
void |
setMaxKeys(int maxKeys)
Not intended for direct use by callers. |
void |
setNextKeyMarker(String marker)
Not intended for direct use by callers. |
void |
setNextVersionIdMarker(String marker)
Not intended for direct use by callers. |
void |
setPrefix(String prefix)
Not intended for direct use by callers. |
void |
setTruncated(boolean isTruncated)
Not intended for direct use by callers. |
void |
setVersionIdMarker(String versionIdMarker)
Not intended for direct use by callers. |
void |
setVersionSummaries(List<S3VersionSummary> versionSummaries)
Not intended for direct use by callers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionListing()
Method Detail |
---|
public List<S3VersionSummary> getVersionSummaries()
AmazonS3.listVersions(ListVersionsRequest)
to get additional
results. Callers should always check the isTruncated()
method to
determine if a listing is truncated or not.
public void setVersionSummaries(List<S3VersionSummary> versionSummaries)
versionSummaries
- The version summaries describing the versions stored in the
associated S3 bucket.public List<String> getCommonPrefixes()
Each common prefix represents a set of keys in the S3 bucket that have been condensed and omitted from the version summary results. This allows applications to organize and browse their keys hierarchically, much like how a file system organizes files into directories.
For example, consider a bucket that contains the keys:
public void setCommonPrefixes(List<String> commonPrefixes)
commonPrefixes
- The common prefixes for this version listing.public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket containing the versions
listed in this S3VersionListing.public String getPrefix()
public void setPrefix(String prefix)
prefix
- The prefix parameter originally used to request this version
listing.public String getKeyMarker()
public void setKeyMarker(String keyMarker)
keyMarker
- The key marker parameter originally used to request this
version listing.public String getVersionIdMarker()
public void setVersionIdMarker(String versionIdMarker)
versionIdMarker
- The version ID marker parameter originally used to request
this version listing.public int getMaxKeys()
public void setMaxKeys(int maxKeys)
maxKeys
- The maxKeys parameter originally used to request this version
listing, or the default maxKeys value applied by Amazon S3 if
the requester didn't specify a value.public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- The delimiter parameter originally used to request this
version listing.public String getNextKeyMarker()
isTruncated()
) returns the key marker to use in
the next listVersions request in order to see the next page of results.
If a version listing is not truncated, this method will return null
since there is no need for a next key marker. For truncated requests,
this value is equal to the greatest (lexicographically) value of the
object keys included in this listing.
public void setNextKeyMarker(String marker)
marker
- The key marker to use in the next listVersions request in
order to see the next page of results for a truncated version
listing.public String getNextVersionIdMarker()
isTruncated()
) returns the version ID marker to
use in the next listVersions request in order to see the next page of
results. If a version listing is not truncated, this method will return
null since there is no need for a next version ID marker.
public void setNextVersionIdMarker(String marker)
marker
- The version ID marker to use in the next listVersions request
in order to see the next page of results for a truncated
version listing.public boolean isTruncated()
public void setTruncated(boolean isTruncated)
isTruncated
- True if this version listing is not complete and the
caller needs to make additional S3 calls to get additional
version summaries.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |