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 Details

    • CompleteMultipartUploadResult

      public CompleteMultipartUploadResult()
  • Method Details

    • 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:
      getExpirationTime in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
    • setExpirationTime

      public void setExpirationTime(Date expirationTime)
      Sets the expiration time for the object.
      Specified by:
      setExpirationTime in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
      Parameters:
      expirationTime - The expiration time for the object.
    • getExpirationTimeRuleId

      public String getExpirationTimeRuleId()
      Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.
      Specified by:
      getExpirationTimeRuleId in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
      See Also:
    • setExpirationTimeRuleId

      public void setExpirationTimeRuleId(String expirationTimeRuleId)
      Sets the BucketLifecycleConfiguration rule ID for this object's expiration
      Specified by:
      setExpirationTimeRuleId in interface com.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 interface com.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 interface com.amazonaws.services.s3.internal.S3RequesterChargedResult
      Parameters:
      isRequesterCharged - Indicates requester is charged for this operation.