Class CopyObjectResult

    • Constructor Detail

      • CopyObjectResult

        public CopyObjectResult()
    • Method Detail

      • getETag

        public String getETag()
        Gets the ETag value for the new object that was created in the associated CopyObjectRequest.
        Returns:
        The ETag value for the new object.
        See Also:
        setETag(String)
      • setETag

        public void setETag​(String etag)
        Sets the ETag value for the new object that was created from the associated copy object request.
        Parameters:
        etag - The ETag value for the new object.
        See Also:
        getETag()
      • getLastModifiedDate

        public Date getLastModifiedDate()
        Gets the date the newly copied object was last modified.
        Returns:
        The date the newly copied object was last modified.
        See Also:
        setLastModifiedDate(Date)
      • setLastModifiedDate

        public void setLastModifiedDate​(Date lastModifiedDate)
        Sets the date the newly copied object was last modified.
        Parameters:
        lastModifiedDate - The date the new, copied object was last modified.
        See Also:
        getLastModifiedDate()
      • getVersionId

        public String getVersionId()
        Description copied from interface: com.amazonaws.services.s3.internal.S3VersionResult
        Gets the version ID of the newly copied object. This field is only present if object versioning has been enabled for the bucket the object was copied to.
        Specified by:
        getVersionId in interface com.amazonaws.services.s3.internal.S3VersionResult
        Returns:
        The version ID of the newly copied object.
        See Also:
        setVersionId(String), CompleteMultipartUploadResult.getVersionId(), PutObjectResult.getVersionId()
      • 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.
      • 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.