public class InitiateMultipartUploadResult extends SSEResultBase implements S3RequesterChargedResult, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
abortDate
Date when multipart upload will become eligible for abort operation by lifecycle.
|
private java.lang.String |
abortRuleId
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.
|
private java.lang.String |
bucketName
The name of the bucket in which the new multipart upload was initiated
|
private boolean |
isRequesterCharged
Indicate if the requester is charged for conducting this operation from
Requester Pays Buckets.
|
private java.lang.String |
key
The object key for which the multipart upload was initiated
|
private java.lang.String |
uploadId
The unique ID of the new multipart upload
|
Constructor and Description |
---|
InitiateMultipartUploadResult() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAbortDate()
Date when multipart upload will become eligible for abort operation by lifecycle.
|
java.lang.String |
getAbortRuleId()
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.
|
java.lang.String |
getBucketName()
Returns the name of the bucket in which the new multipart upload was
initiated.
|
java.lang.String |
getKey()
Returns the object key for which the multipart upload was initiated.
|
java.lang.String |
getUploadId()
Returns the initiated multipart upload ID.
|
boolean |
isRequesterCharged()
Returns true if the user has enabled Requester Pays option when
conducting this operation from Requester Pays Bucket; else false.
|
void |
setAbortDate(java.util.Date abortDate)
Date when multipart upload will become eligible for abort operation by lifecycle.
|
void |
setAbortRuleId(java.lang.String abortRuleId)
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the bucket in which the new multipart upload was
initiated.
|
void |
setKey(java.lang.String key)
Sets the object key for which the multipart upload was initiated.
|
void |
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
|
void |
setUploadId(java.lang.String uploadId)
Sets the initiated multipart upload ID.
|
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
private java.lang.String bucketName
private java.lang.String key
private java.lang.String uploadId
private java.util.Date abortDate
private java.lang.String abortRuleId
private boolean isRequesterCharged
public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket in which the new multipart upload was
initiated.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The object key for which the multipart upload was initiated.public java.lang.String getUploadId()
public void setUploadId(java.lang.String uploadId)
uploadId
- The initiated multipart upload ID.public java.util.Date getAbortDate()
public void setAbortDate(java.util.Date abortDate)
abortDate
- The date when the upload will be eligible for abort.public java.lang.String getAbortRuleId()
public void setAbortRuleId(java.lang.String abortRuleId)
abortRuleId
- Rule IDpublic boolean isRequesterCharged()
S3RequesterChargedResult
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
isRequesterCharged
in interface S3RequesterChargedResult
public void setRequesterCharged(boolean isRequesterCharged)
S3RequesterChargedResult
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.
setRequesterCharged
in interface S3RequesterChargedResult
isRequesterCharged
- Indicates requester is charged for this operation.