Class PartListing
java.lang.Object
com.amazonaws.services.s3.model.PartListing
- All Implemented Interfaces:
com.amazonaws.services.s3.internal.S3RequesterChargedResult, Serializable
public class PartListing
extends Object
implements Serializable, com.amazonaws.services.s3.internal.S3RequesterChargedResult
The ListPartsResponse contains all the information about the ListParts
method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDate when multipart upload will become eligible for abort operation by lifecycle.Id of the lifecycle rule that makes a multipart upload eligible for abort operation.Returns the name of the bucket containing the listed parts, as specified in the original request.Gets the encoding type used by Amazon S3 to encode object key names in the XML response.Returns details on the user who initiated the associated multipart upload.getKey()Returns the key value specified in the original request used to identify which multipart upload contains the parts to list.Returns the optional max parts value specified in the original request to limit how many parts are listed.Returns the next part number marker.getOwner()Returns details on the user who owns the associated multipart upload.Returns the optional part number marker specified in the original request to specify where in the results to begin listing parts.getParts()Returns the list of parts described in this part listing.Returns the class of storage used for the parts in the associated multipart upload.Returns the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.booleanReturns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.booleanReturns whether or not this listing is truncated, and additional requests need to be made to get more results.voidsetAbortDate(Date abortDate) Date when multipart upload will become eligible for abort operation by lifecycle.voidsetAbortRuleId(String abortRuleId) Id of the lifecycle rule that makes a multipart upload eligible for abort operation.voidsetBucketName(String bucketName) Sets the name of the bucket containing the listed parts, as specified in the original request.voidsetEncodingType(String encodingType) For internal use only.voidsetInitiator(Owner initiator) Sets the user who initiated the associated multipart upload.voidSets the key value specified in the original request used to identify which multipart upload contains the parts to list.voidsetMaxParts(int maxParts) Sets the optional max parts value specified in the original request to limit how many parts are listed.voidsetNextPartNumberMarker(int nextPartNumberMarker) Sets the next part number marker.voidSets the user who owns the associated multipart upload.voidsetPartNumberMarker(int partNumberMarker) Sets the optional part number marker specified in the original request to specify where in the results to begin listing parts.voidsetParts(List<PartSummary> parts) Sets the list of parts described in this part listing.voidsetRequesterCharged(boolean isRequesterCharged) Used for conducting this operation from a Requester Pays Bucket.voidsetStorageClass(String storageClass) Sets the class of storage used for the parts in the associated multipart upload.voidsetTruncated(boolean isTruncated) Sets whether or not this listing is truncated, and additional requests need to be made to get more results.voidsetUploadId(String uploadId) Sets the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
-
Constructor Details
-
PartListing
public PartListing()
-
-
Method Details
-
getBucketName
Returns the name of the bucket containing the listed parts, as specified in the original request.- Returns:
- the name of the bucket containing the listed parts, as specified in the original request.
-
setBucketName
Sets the name of the bucket containing the listed parts, as specified in the original request.- Parameters:
bucketName- the name of the bucket containing the listed parts, as specified in the original request.
-
getKey
Returns the key value specified in the original request used to identify which multipart upload contains the parts to list.- Returns:
- the key value specified in the original request used to identify which multipart upload contains the parts to list.
-
setKey
Sets the key value specified in the original request used to identify which multipart upload contains the parts to list.- Parameters:
key- the key value specified in the original request used to identify which multipart upload contains the parts to list.
-
getUploadId
Returns the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.- Returns:
- the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
-
setUploadId
Sets the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.- Parameters:
uploadId- the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
-
getOwner
Returns details on the user who owns the associated multipart upload.- Returns:
- details on the user who owns the associated multipart upload.
-
setOwner
Sets the user who owns the associated multipart upload.- Parameters:
owner- the user who owns the associated multipart upload.
-
getInitiator
Returns details on the user who initiated the associated multipart upload.- Returns:
- details on the user who initiated the associated multipart upload.
-
setInitiator
Sets the user who initiated the associated multipart upload.- Parameters:
initiator- the user who initiated the associated multipart upload.
-
getStorageClass
Returns the class of storage used for the parts in the associated multipart upload.- Returns:
- The class of storage used for the parts in the associated multipart upload.
-
setStorageClass
Sets the class of storage used for the parts in the associated multipart upload.- Parameters:
storageClass- The class of storage used for the parts in the associated multipart upload.
-
getPartNumberMarker
Returns the optional part number marker specified in the original request to specify where in the results to begin listing parts.- Returns:
- the optional part number marker specified in the original request to specify where in the results to begin listing parts.
-
setPartNumberMarker
public void setPartNumberMarker(int partNumberMarker) Sets the optional part number marker specified in the original request to specify where in the results to begin listing parts.- Parameters:
partNumberMarker- the optional part number marker specified in the original request to specify where in the results to begin listing parts.
-
getNextPartNumberMarker
Returns the next part number marker. If this listing is truncated, this is the part number marker that should be used in the next request to get the next page of results.- Returns:
- The next part number marker, to be used for pagination if this part listing is truncated.
-
setNextPartNumberMarker
public void setNextPartNumberMarker(int nextPartNumberMarker) Sets the next part number marker. If this listing is truncated, this is the part number marker that should be used in the next request to get the next page of results.- Parameters:
nextPartNumberMarker- The next part number marker.
-
getMaxParts
Returns the optional max parts value specified in the original request to limit how many parts are listed.- Returns:
- The optional max parts value specified in the original request to limit how many parts are listed.
-
setMaxParts
public void setMaxParts(int maxParts) Sets the optional max parts value specified in the original request to limit how many parts are listed.- Parameters:
maxParts- The optional max parts value specified in the original request to limit how many parts are listed.
-
getEncodingType
Gets the encoding type used by Amazon S3 to encode object key names in the XML response. If you specifyencodingTyperequest parameter, Amazon S3 includes this element in the response, and returns encoded key name values in theKeyelement.- Returns:
NullifencodingTypeis not specified in the request parameter.
-
setEncodingType
For internal use only. Sets the encoding type used by Amazon S3 to encode object key names in the XML response.- Parameters:
encodingType-NullifencodingTypeis not specified in the request parameter.
-
isTruncated
public boolean isTruncated()Returns whether or not this listing is truncated, and additional requests need to be made to get more results.- Returns:
- whether or not this listing is truncated, and additional requests need to be made to get more results.
-
setTruncated
public void setTruncated(boolean isTruncated) Sets whether or not this listing is truncated, and additional requests need to be made to get more results.- Parameters:
isTruncated- whether or not this listing is truncated, and additional requests need to be made to get more results.
-
getParts
Returns the list of parts described in this part listing.- Returns:
- The list of parts described in this part listing.
-
setParts
Sets the list of parts described in this part listing.- Parameters:
parts- The list of parts described in this part listing.
-
getAbortDate
Date when multipart upload will become eligible for abort operation by lifecycle.- Returns:
- The date when the upload will be eligible for abort.
-
setAbortDate
Date when multipart upload will become eligible for abort operation by lifecycle.- Parameters:
abortDate- The date when the upload will be eligible for abort.
-
getAbortRuleId
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.- Returns:
- Rule ID
-
setAbortRuleId
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.- Parameters:
abortRuleId- Rule ID
-
isRequesterCharged
public boolean isRequesterCharged()Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResultReturns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
Enabling Requester Pays disables the ability to have anonymous access to this bucket
- Specified by:
isRequesterChargedin interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterCharged
public void setRequesterCharged(boolean isRequesterCharged) Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResultUsed for conducting this operation from a Requester Pays Bucket. If set the requester is charged for conducting the operation from the bucket.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
- Specified by:
setRequesterChargedin interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult- Parameters:
isRequesterCharged- Indicates requester is charged for this operation.
-