public class MultipartUploadListing
extends java.lang.Object
Constructor and Description |
---|
MultipartUploadListing() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket containing the listed multipart uploads,
as specified in the original request.
|
java.util.List<java.lang.String> |
getCommonPrefixes()
Returns the common prefixes included in this multipart upload listing.
|
java.lang.String |
getDelimiter()
Gets the delimiter parameter originally used to request this multipart
upload listing, or
null if no delimiter specified. |
java.lang.String |
getEncodingType()
Gets the encoding type used by Amazon S3 to encode object key names in
the XML response.
|
java.lang.String |
getKeyMarker()
Returns the optional key marker specified in the original request to
specify where in the results to begin listing multipart uploads.
|
int |
getMaxUploads()
Returns the optional maximum number of uploads to be listed, as specified
in the original request.
|
java.util.List<MultipartUpload> |
getMultipartUploads()
Returns the list of multipart uploads.
|
java.lang.String |
getNextKeyMarker()
Returns the next key marker that should be used in the next request to
get the next page of results.
|
java.lang.String |
getNextUploadIdMarker()
Returns the next upload ID marker that should be used in the next request
to get the next page of results.
|
java.lang.String |
getPrefix()
Returns the prefix parameter originally used to request this multipart
upload listing, or
null if no prefix was specified. |
java.lang.String |
getUploadIdMarker()
Returns the optional upload ID marker specified in the original request
to specify where in the results to begin listing multipart uploads.
|
boolean |
isTruncated()
Returns true if the listing is truncated, and additional requests need to
be made to get more results.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the bucket containing the listed multipart uploads, as
specified in the original request.
|
void |
setCommonPrefixes(java.util.List<java.lang.String> commonPrefixes)
For internal use only.
|
void |
setDelimiter(java.lang.String delimiter)
For internal use only.
|
void |
setEncodingType(java.lang.String encodingType)
For internal use only.
|
void |
setKeyMarker(java.lang.String keyMarker)
Sets the optional key marker specified in the original request to specify
where in the results to begin listing multipart uploads.
|
void |
setMaxUploads(int maxUploads)
Sets the optional maximum number of uploads to be listed, as specified in
the original request.
|
void |
setMultipartUploads(java.util.List<MultipartUpload> multipartUploads)
Sets the list of multipart uploads.
|
void |
setNextKeyMarker(java.lang.String nextKeyMarker)
Sets the next key marker that should be used in the next request to get
the next page of results.
|
void |
setNextUploadIdMarker(java.lang.String nextUploadIdMarker)
Sets the next upload ID marker that should be used in the next request to
get the next page of results.
|
void |
setPrefix(java.lang.String prefix)
For internal use only.
|
void |
setTruncated(boolean isTruncated)
Sets whether this listing is truncated, and additional requests need to
be made to get more results.
|
void |
setUploadIdMarker(java.lang.String uploadIdMarker)
Sets the optional upload ID marker specified in the original request to
specify where in the results to begin listing multipart uploads.
|
public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket containing the listed multipart
uploads, as specified in the original request.public java.lang.String getKeyMarker()
public void setKeyMarker(java.lang.String keyMarker)
keyMarker
- The optional key marker specified in the original
request to specify where in the results to begin listing
multipart uploads.public java.lang.String getUploadIdMarker()
public void setUploadIdMarker(java.lang.String uploadIdMarker)
uploadIdMarker
- The optional upload ID marker specified in the
original request to specify where in the results to begin
listing multipart uploads.public java.lang.String getNextKeyMarker()
isTruncated()
indicates this listing is truncated.isTruncated()
indicates this listing is truncated.public void setNextKeyMarker(java.lang.String nextKeyMarker)
nextKeyMarker
- the next key marker that should be used in the next
request to get the next page of results.public java.lang.String getNextUploadIdMarker()
isTruncated()
indicates this listing is truncated.public void setNextUploadIdMarker(java.lang.String nextUploadIdMarker)
nextUploadIdMarker
- The next upload ID marker that should be used
in the next request to get the next page of results.public int getMaxUploads()
public void setMaxUploads(int maxUploads)
maxUploads
- The optional maximum number of uploads to be listed, as
specified in the original request.public java.lang.String getEncodingType()
encodingType
request
parameter, Amazon S3 includes this element in the response, and returns
encoded key name values in the following response elements:
Delimiter, KeyMarker, Prefix, NextKeyMarker, Key
.Null
if encodingType
is not specified
in the request parameter.public void setEncodingType(java.lang.String encodingType)
encodingType
- Null
if encodingType
is not
specified in the request parameter.public boolean isTruncated()
public void setTruncated(boolean isTruncated)
isTruncated
- true if the listing is truncated, and additional
requests need to be made to get more results.public java.util.List<MultipartUpload> getMultipartUploads()
public void setMultipartUploads(java.util.List<MultipartUpload> multipartUploads)
multipartUploads
- The list of multipart uploads.public java.util.List<java.lang.String> getCommonPrefixes()
Returns the common prefixes included in this multipart upload listing. Common prefixes are only present if a delimiter was specified in the original request.
Each common prefix represents a set of keys in the S3 bucket that have been condensed and omitted from the multipart upload listing results. This allows applications to organize and browse their multipart uploads hierarchically, similar to how a file system organizes files into directories.
For example, consider a bucket that contains the following keys currently involved in multipart uploads:
listMultipartUploads
with the prefix="foo/" and
the delimiter="/" on this bucket, the returned
MultipartUploadListing
will contain one entry in the common
prefixes list ("foo/bar/") and none of the uploads for the keys beginning
with that common prefix will be included in the multipart upload list.public void setCommonPrefixes(java.util.List<java.lang.String> commonPrefixes)
commonPrefixes
- The common prefixes for this multipart upload
listing.public java.lang.String getDelimiter()
null
if no delimiter specified.
The delimiter value allows callers to condense multipart uploads for keys with common prefixes. For example, if a caller specifies a delimiter of "/" (a commonly used value for delimiter), any multipart uploads for keys that contain a common prefix between the start of the key and the first occurrence of "/" will not be included in the list of multipart uploads. Instead, the common prefixes list will have one entry for the common prefix.
null
if no delimiter was
specified.public void setDelimiter(java.lang.String delimiter)
delimiter
- The delimiter parameter originally used to request this
multipart upload listing.public java.lang.String getPrefix()
null
if no prefix was specified. All
objects and common prefixes included in this multipart upload listing
start with the specified prefix.null
if no prefix was
specified.public void setPrefix(java.lang.String prefix)
prefix
- The prefix parameter originally used to request this
multipart upload listing.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.