public class AbortMultipartUploadRequest extends AmazonWebServiceRequest implements java.io.Serializable
Required Parameters: BucketName, Key, UploadId
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The name of the bucket containing the multipart upload to abort
|
private boolean |
isRequesterPays
If enabled, the requester is charged for conducting this operation from
Requester Pays Buckets.
|
private java.lang.String |
key
The key of the multipart upload to abort
|
private java.lang.String |
uploadId
The ID of the multipart upload to abort
|
NOOP
Constructor and Description |
---|
AbortMultipartUploadRequest(java.lang.String bucketName,
java.lang.String key,
java.lang.String uploadId)
Constructs a new request to abort a multipart upload.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket containing the multipart upload to abort.
|
java.lang.String |
getKey()
Returns the key of the multipart upload to abort.
|
java.lang.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(java.lang.String value)
Sets the name of the bucket containing the multipart upload to abort.
|
void |
setKey(java.lang.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(java.lang.String uploadId)
Sets the ID of the upload to abort.
|
AbortMultipartUploadRequest |
withBucketName(java.lang.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(java.lang.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(java.lang.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.
|
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
private java.lang.String bucketName
private java.lang.String key
private java.lang.String uploadId
private boolean isRequesterPays
public AbortMultipartUploadRequest(java.lang.String bucketName, java.lang.String key, java.lang.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 java.lang.String getBucketName()
public void setBucketName(java.lang.String value)
public AbortMultipartUploadRequest withBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket containing the multipart upload to
abort.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key of the multipart upload to abort.public AbortMultipartUploadRequest withKey(java.lang.String key)
key
- The key of the multipart upload to abort.public java.lang.String getUploadId()
public void setUploadId(java.lang.String uploadId)
public AbortMultipartUploadRequest withUploadId(java.lang.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.