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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompleteMultipartUploadResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBucketName()Returns the name of the bucket containing the completed multipart object.StringgetETag()Returns the entity tag identifying the new object.DategetExpirationTime()Returns the expiration time for this object, or null if it doesn't expire.StringgetExpirationTimeRuleId()Returns theBucketLifecycleConfigurationrule ID for this object's expiration, or null if it doesn't expire.StringgetKey()Gets the key by which the newly created object is stored.StringgetLocation()Returns the URL identifying the new multipart object.StringgetVersionId()Returns the version ID of the new object, only present if versioning has been enabled for the bucket.booleanisRequesterCharged()Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.voidsetBucketName(String bucketName)Sets the name of the bucket containing the completed multipart object.voidsetETag(String etag)Sets the entity tag identifying the new object.voidsetExpirationTime(Date expirationTime)Sets the expiration time for the object.voidsetExpirationTimeRuleId(String expirationTimeRuleId)Sets theBucketLifecycleConfigurationrule ID for this object's expirationvoidsetKey(String key)Sets the key of the newly created object.voidsetLocation(String location)Sets the URL identifying the new multipart object.voidsetRequesterCharged(boolean isRequesterCharged)Used for conducting this operation from a Requester Pays Bucket.voidsetVersionId(String versionId)Sets the version ID of the new object, only present if versioning has been enabled for the bucket.
-
-
-
Method Detail
-
getLocation
public String getLocation()
Returns the URL identifying the new multipart object.- Returns:
- The URL identifying the new multipart object.
-
setLocation
public void setLocation(String location)
Sets the URL identifying the new multipart object.- Parameters:
location- The URL identifying the new multipart object.
-
getBucketName
public String getBucketName()
Returns the name of the bucket containing the completed multipart object.- Returns:
- The name of the bucket containing the completed multipart object.
-
setBucketName
public void setBucketName(String bucketName)
Sets the name of the bucket containing the completed multipart object.- Parameters:
bucketName- The name of the bucket containing the completed multipart object.
-
getKey
public String getKey()
Gets the key by which the newly created object is stored.
-
setKey
public void setKey(String key)
Sets the key of the newly created object.
-
getETag
public String 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
public void setETag(String etag)
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
public String 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
public void setVersionId(String versionId)
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
public Date getExpirationTime()
Returns the expiration time for this object, or null if it doesn't expire.- Specified by:
getExpirationTimein interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult
-
setExpirationTime
public void setExpirationTime(Date expirationTime)
Sets the expiration time for the object.- Specified by:
setExpirationTimein interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult- Parameters:
expirationTime- The expiration time for the object.
-
getExpirationTimeRuleId
public String getExpirationTimeRuleId()
Returns theBucketLifecycleConfigurationrule ID for this object's expiration, or null if it doesn't expire.- Specified by:
getExpirationTimeRuleIdin interfacecom.amazonaws.services.s3.internal.ObjectExpirationResult- See Also:
BucketLifecycleConfiguration.Rule.getId()
-
setExpirationTimeRuleId
public void setExpirationTimeRuleId(String expirationTimeRuleId)
Sets theBucketLifecycleConfigurationrule ID for this object's expiration- Specified by:
setExpirationTimeRuleIdin 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.S3RequesterChargedResultReturns 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:
isRequesterChargedin 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.S3RequesterChargedResultUsed 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:
setRequesterChargedin interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult- Parameters:
isRequesterCharged- Indicates requester is charged for this operation.
-
-