public class CompleteMultipartUploadResult extends SSEResultBase implements ObjectExpirationResult, S3RequesterChargedResult, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The name of the bucket containing the completed multipart upload.
|
private java.lang.String |
eTag
The entity tag identifying the new object.
|
private java.util.Date |
expirationTime
The time this object expires, or null if it has no expiration
|
private java.lang.String |
expirationTimeRuleId
The expiration rule for this object
|
private boolean |
isRequesterCharged
Indicate if the requester is charged for conducting this operation from
Requester Pays Buckets.
|
private java.lang.String |
key
The key by which the object is stored.
|
private java.lang.String |
location
The URL identifying the new multipart object.
|
private java.lang.String |
versionId
The version ID of the new object, only present if versioning has been
enabled for the bucket.
|
Constructor and Description |
---|
CompleteMultipartUploadResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket containing the completed multipart object.
|
java.lang.String |
getETag()
Returns the entity tag identifying the new object.
|
java.util.Date |
getExpirationTime()
Returns the expiration time for this object, or null if it doesn't expire.
|
java.lang.String |
getExpirationTimeRuleId()
Returns the
BucketLifecycleConfiguration rule ID for this
object's expiration, or null if it doesn't expire. |
java.lang.String |
getKey()
Gets the key by which the newly created object is stored.
|
java.lang.String |
getLocation()
Returns the URL identifying the new multipart object.
|
java.lang.String |
getVersionId()
Returns the version ID of the new object, only present if versioning has
been enabled for the bucket.
|
boolean |
isRequesterCharged()
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 bucketName)
Sets the name of the bucket containing the completed multipart object.
|
void |
setETag(java.lang.String etag)
Sets the entity tag identifying the new object.
|
void |
setExpirationTime(java.util.Date expirationTime)
Sets the expiration time for the object.
|
void |
setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
Sets the
BucketLifecycleConfiguration rule ID for this object's
expiration |
void |
setKey(java.lang.String key)
Sets the key of the newly created object.
|
void |
setLocation(java.lang.String location)
Sets the URL identifying the new multipart object.
|
void |
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
|
void |
setVersionId(java.lang.String versionId)
Sets the version ID of the new object, only present if versioning has
been enabled for the bucket.
|
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
private java.lang.String bucketName
private java.lang.String key
private java.lang.String location
private java.lang.String eTag
private java.lang.String versionId
private java.util.Date expirationTime
private java.lang.String expirationTimeRuleId
private boolean isRequesterCharged
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- The URL identifying the new multipart object.public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket containing the completed multipart
object.public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getETag()
public void setETag(java.lang.String etag)
etag
- The entity tag.public java.lang.String getVersionId()
public void setVersionId(java.lang.String versionId)
versionId
- The version ID of the new object, only present if versioning
has been enabled for the bucket.public java.util.Date getExpirationTime()
getExpirationTime
in interface ObjectExpirationResult
public void setExpirationTime(java.util.Date expirationTime)
setExpirationTime
in interface ObjectExpirationResult
expirationTime
- The expiration time for the object.public java.lang.String getExpirationTimeRuleId()
BucketLifecycleConfiguration
rule ID for this
object's expiration, or null if it doesn't expire.getExpirationTimeRuleId
in interface ObjectExpirationResult
BucketLifecycleConfiguration.Rule.getId()
public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
BucketLifecycleConfiguration
rule ID for this object's
expirationsetExpirationTimeRuleId
in interface ObjectExpirationResult
expirationTimeRuleId
- The rule ID for this object's expirationpublic 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.