Package com.amazonaws.services.s3.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartListing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetAbortDate()Date when multipart upload will become eligible for abort operation by lifecycle.StringgetAbortRuleId()Id of the lifecycle rule that makes a multipart upload eligible for abort operation.StringgetBucketName()Returns the name of the bucket containing the listed parts, as specified in the original request.StringgetEncodingType()Gets the encoding type used by Amazon S3 to encode object key names in the XML response.OwnergetInitiator()Returns details on the user who initiated the associated multipart upload.StringgetKey()Returns the key value specified in the original request used to identify which multipart upload contains the parts to list.IntegergetMaxParts()Returns the optional max parts value specified in the original request to limit how many parts are listed.IntegergetNextPartNumberMarker()Returns the next part number marker.OwnergetOwner()Returns details on the user who owns the associated multipart upload.IntegergetPartNumberMarker()Returns the optional part number marker specified in the original request to specify where in the results to begin listing parts.List<PartSummary>getParts()Returns the list of parts described in this part listing.StringgetStorageClass()Returns the class of storage used for the parts in the associated multipart upload.StringgetUploadId()Returns the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.booleanisRequesterCharged()Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.booleanisTruncated()Returns 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.voidsetKey(String key)Sets 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.voidsetOwner(Owner owner)Sets 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.
-
-
-
Method Detail
-
getBucketName
public String 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
public void setBucketName(String bucketName)
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
public String 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
public void setKey(String key)
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
public String 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
public void setUploadId(String uploadId)
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
public Owner getOwner()
Returns details on the user who owns the associated multipart upload.- Returns:
- details on the user who owns the associated multipart upload.
-
setOwner
public void setOwner(Owner owner)
Sets the user who owns the associated multipart upload.- Parameters:
owner- the user who owns the associated multipart upload.
-
getInitiator
public Owner getInitiator()
Returns details on the user who initiated the associated multipart upload.- Returns:
- details on the user who initiated the associated multipart upload.
-
setInitiator
public void setInitiator(Owner initiator)
Sets the user who initiated the associated multipart upload.- Parameters:
initiator- the user who initiated the associated multipart upload.
-
getStorageClass
public String 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
public void setStorageClass(String storageClass)
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
public Integer 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
public Integer 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
public Integer 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
public String 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
public void setEncodingType(String encodingType)
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
public List<PartSummary> getParts()
Returns the list of parts described in this part listing.- Returns:
- The list of parts described in this part listing.
-
setParts
public void setParts(List<PartSummary> parts)
Sets the list of parts described in this part listing.- Parameters:
parts- The list of parts described in this part listing.
-
getAbortDate
public Date 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
public void setAbortDate(Date abortDate)
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
public String getAbortRuleId()
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.- Returns:
- Rule ID
-
setAbortRuleId
public void setAbortRuleId(String abortRuleId)
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.
-
-