public class AbortMultipartUploadRequest extends AmazonWebServiceRequest implements Serializable
Required Parameters: BucketName, Key, UploadId
NOOP
Constructor and Description |
---|
AbortMultipartUploadRequest(String bucketName,
String key,
String uploadId)
Constructs a new request to abort a multipart upload.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket containing the multipart upload to abort.
|
String |
getKey()
Returns the key of the multipart upload to abort.
|
String |
getUploadId()
Returns the ID of the upload to abort.
|
boolean |
isRequesterPays()
Returns true if the user has enabled Requester Pays option when
conducting this operation from Requester Pays Bucket; else false.
|
void |
setBucketName(String value)
Sets the name of the bucket containing the multipart upload to abort.
|
void |
setKey(String key)
Sets the key of the multipart upload to abort.
|
void |
setRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket.
|
void |
setUploadId(String uploadId)
Sets the ID of the upload to abort.
|
AbortMultipartUploadRequest |
withBucketName(String bucketName)
Sets the name of the bucket containing the multipart upload to abort and
returns the updated object so that additional calls can be chained
together.
|
AbortMultipartUploadRequest |
withKey(String key)
Sets the key of the multipart upload to abort and returns the updated
AbortMultipartUploadRequest object so that additional method calls can be
chained together.
|
AbortMultipartUploadRequest |
withRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket.
|
AbortMultipartUploadRequest |
withUploadId(String uploadId)
Sets the ID of the multipart upload to abort, and returns this updated
AbortMultipartUploadRequest object so that additional method calls can be
chained together.
|
addHandlerContext, clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AbortMultipartUploadRequest(String bucketName, String key, String uploadId)
bucketName
- The name of the bucket containing the multipart upload to
abort.key
- The key of the multipart upload to abort.uploadId
- The ID of the multipart upload to abort.public String getBucketName()
public void setBucketName(String value)
public AbortMultipartUploadRequest withBucketName(String bucketName)
bucketName
- The name of the bucket containing the multipart upload to
abort.public String getKey()
public void setKey(String key)
key
- The key of the multipart upload to abort.public AbortMultipartUploadRequest withKey(String key)
key
- The key of the multipart upload to abort.public String getUploadId()
public void setUploadId(String uploadId)
public AbortMultipartUploadRequest withUploadId(String uploadId)
uploadId
- The ID of the multipart upload to abort.public boolean isRequesterPays()
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
public void setRequesterPays(boolean isRequesterPays)
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.
isRequesterPays
- Enable Requester Pays option for the operation.public AbortMultipartUploadRequest withRequesterPays(boolean isRequesterPays)
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.
isRequesterPays
- Enable Requester Pays option for the operation.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.