Class CompleteMultipartUploadRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
If you are performing a complete multipart upload for KMS-encrypted objects, you need to specify the correct region of the bucket on your client and configure AWS Signature Version 4 for added security. For more information on how to do this, see http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify -signature-version
Required Parameters: BucketName, Key, UploadId, PartETags
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bucket containing the multipart upload to complete.getKey()
Returns the key under which the multipart upload to complete is stored.Returns the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.Returns the ID of the multipart upload to complete.boolean
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.void
setBucketName
(String bucketName) Sets the name of the bucket containing the multipart upload to complete.void
Sets the key under which the multipart upload to complete is stored.void
setPartETags
(List<PartETag> partETags) Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.void
setRequesterPays
(boolean isRequesterPays) Used for conducting this operation from a Requester Pays Bucket.void
setUploadId
(String uploadId) Sets the ID of the multipart upload to complete.withBucketName
(String bucketName) Sets the name of the bucket containing the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest so that additional method calls can be chained together.Sets the key under which the multipart upload to complete is stored, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained together.withPartETags
(UploadPartResult... uploadPartResults) Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete based on the specified results from part uploads.withPartETags
(Collection<UploadPartResult> uploadPartResultsCollection) Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete based on the specified results from part uploads.withPartETags
(List<PartETag> partETags) Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained.withRequesterPays
(boolean isRequesterPays) Used for conducting this operation from a Requester Pays Bucket.withUploadId
(String uploadId) Sets the ID of the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained together.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CompleteMultipartUploadRequest
public CompleteMultipartUploadRequest() -
CompleteMultipartUploadRequest
public CompleteMultipartUploadRequest(String bucketName, String key, String uploadId, List<PartETag> partETags) Constructs a new request to complete a multipart upload.- Parameters:
bucketName
- The name of the bucket containing the multipart upload to complete.key
- The key of the multipart upload to complete.uploadId
- The ID of the multipart upload to complete.partETags
- The list of part numbers and ETags to use when completing the multipart upload.
-
-
Method Details
-
getBucketName
Returns the name of the bucket containing the multipart upload to complete.- Returns:
- The name of the bucket containing the multipart upload to complete.
-
setBucketName
Sets the name of the bucket containing the multipart upload to complete.- Parameters:
bucketName
- The name of the bucket containing the multipart upload to complete.
-
withBucketName
Sets the name of the bucket containing the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest so that additional method calls can be chained together.- Parameters:
bucketName
- The name of the bucket containing the multipart upload to complete.- Returns:
- The updated CompleteMultipartUploadRequest.
-
getKey
Returns the key under which the multipart upload to complete is stored.- Returns:
- The key under which the multipart upload to complete is stored.
-
setKey
Sets the key under which the multipart upload to complete is stored.- Parameters:
key
- The key under which the multipart upload to complete is stored.
-
withKey
Sets the key under which the multipart upload to complete is stored, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained together.- Parameters:
key
- The key under which the multipart upload to complete is stored.- Returns:
- This updated CompleteMultipartUploadRequest object.
-
getUploadId
Returns the ID of the multipart upload to complete.- Returns:
- The ID of the multipart upload to complete.
-
setUploadId
Sets the ID of the multipart upload to complete.- Parameters:
uploadId
- The ID of the multipart upload to complete.
-
withUploadId
Sets the ID of the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained together.- Parameters:
uploadId
- The ID of the multipart upload to complete.- Returns:
- This updated CompleteMultipartUploadRequest object.
-
getPartETags
Returns the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- Returns:
- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.
-
setPartETags
Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- Parameters:
partETags
- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.
-
withPartETags
Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete, and returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained.- Parameters:
partETags
- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- Returns:
- This updated CompleteMultipartUploadRequest object.
-
withPartETags
Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete based on the specified results from part uploads.- Parameters:
uploadPartResults
- The list of results from the individual part uploads in the multipart upload to complete.- Returns:
- This updated CompleteMultipartUploadRequest object.
-
withPartETags
public CompleteMultipartUploadRequest withPartETags(Collection<UploadPartResult> uploadPartResultsCollection) Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete based on the specified results from part uploads.- Parameters:
uploadPartResultsCollection
- The list of results from the individual part uploads in the multipart upload to complete.- Returns:
- This updated CompleteMultipartUploadRequest object.
-
isRequesterPays
public boolean isRequesterPays()Returns 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 to upload or download an object 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
- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterPays
public void setRequesterPays(boolean isRequesterPays) Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for requests from the bucket.If a bucket is enabled for Requester Pays, then any attempt to upload or download an object 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.
- Parameters:
isRequesterPays
- Enable Requester Pays option for the operation.
-
withRequesterPays
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for requests from the bucket. It returns this updated CompleteMultipartUploadRequest object so that additional method calls can be chained together.If a bucket is enabled for Requester Pays, then any attempt to upload or download an object 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.
- Parameters:
isRequesterPays
- Enable Requester Pays option for the operation.- Returns:
- The updated CompleteMultipartUploadRequest object.
-