Package com.amazonaws.services.s3.model
Class CompleteMultipartUploadResult
java.lang.Object
com.amazonaws.services.s3.internal.SSEResultBase
com.amazonaws.services.s3.model.CompleteMultipartUploadResult
- All Implemented Interfaces:
com.amazonaws.services.s3.internal.ObjectExpirationResult
,com.amazonaws.services.s3.internal.S3RequesterChargedResult
,com.amazonaws.services.s3.internal.ServerSideEncryptionResult
,Serializable
public class CompleteMultipartUploadResult
extends com.amazonaws.services.s3.internal.SSEResultBase
implements com.amazonaws.services.s3.internal.ObjectExpirationResult, com.amazonaws.services.s3.internal.S3RequesterChargedResult, Serializable
The CompleteMultipartUploadResult contains all the information about the
CompleteMultipartUpload method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bucket containing the completed multipart object.getETag()
Returns the entity tag identifying the new object.Returns the expiration time for this object, or null if it doesn't expire.Returns theBucketLifecycleConfiguration
rule ID for this object's expiration, or null if it doesn't expire.getKey()
Gets the key by which the newly created object is stored.Returns the URL identifying the new multipart object.Returns the version ID of the new object, only present if versioning has been enabled for the bucket.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 completed multipart object.void
Sets the entity tag identifying the new object.void
setExpirationTime
(Date expirationTime) Sets the expiration time for the object.void
setExpirationTimeRuleId
(String expirationTimeRuleId) Sets theBucketLifecycleConfiguration
rule ID for this object's expirationvoid
Sets the key of the newly created object.void
setLocation
(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
(String versionId) Sets the version ID of the new object, only present if versioning has been enabled for the bucket.Methods inherited from class com.amazonaws.services.s3.internal.SSEResultBase
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
-
Constructor Details
-
CompleteMultipartUploadResult
public CompleteMultipartUploadResult()
-
-
Method Details
-
getLocation
Returns the URL identifying the new multipart object.- Returns:
- The URL identifying the new multipart object.
-
setLocation
Sets the URL identifying the new multipart object.- Parameters:
location
- The URL identifying the new multipart object.
-
getBucketName
Returns the name of the bucket containing the completed multipart object.- Returns:
- The name of the bucket containing the completed multipart object.
-
setBucketName
Sets the name of the bucket containing the completed multipart object.- Parameters:
bucketName
- The name of the bucket containing the completed multipart object.
-
getKey
Gets the key by which the newly created object is stored. -
setKey
Sets the key of the newly created object. -
getETag
Returns the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.- Returns:
- An opaque string that changes if and only if an object's data changes.
-
setETag
Sets the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.- Parameters:
etag
- The entity tag.
-
getVersionId
Returns the version ID of the new object, only present if versioning has been enabled for the bucket.- Returns:
- The version ID of the new object, only present if versioning has been enabled for the bucket.
-
setVersionId
Sets the version ID of the new object, only present if versioning has been enabled for the bucket.- Parameters:
versionId
- The version ID of the new object, only present if versioning has been enabled for the bucket.
-
getExpirationTime
Returns the expiration time for this object, or null if it doesn't expire.- Specified by:
getExpirationTime
in interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult
-
setExpirationTime
Sets the expiration time for the object.- Specified by:
setExpirationTime
in interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult
- Parameters:
expirationTime
- The expiration time for the object.
-
getExpirationTimeRuleId
Returns theBucketLifecycleConfiguration
rule ID for this object's expiration, or null if it doesn't expire.- Specified by:
getExpirationTimeRuleId
in interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult
- See Also:
-
setExpirationTimeRuleId
Sets theBucketLifecycleConfiguration
rule ID for this object's expiration- Specified by:
setExpirationTimeRuleId
in interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult
- Parameters:
expirationTimeRuleId
- The rule ID for this object's expiration
-
isRequesterCharged
public boolean isRequesterCharged()Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
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 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
- Specified by:
isRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterCharged
public void setRequesterCharged(boolean isRequesterCharged) Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for conducting the operation from the bucket.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.
- Specified by:
setRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Parameters:
isRequesterCharged
- Indicates requester is charged for this operation.
-