Skip navigation links
org.jclouds.s3.options

Class CopyObjectOptions

    • Constructor Detail

      • CopyObjectOptions

        public CopyObjectOptions()
    • Method Detail

      • setMetadataPrefix

        @Inject
        public void setMetadataPrefix(@Named(value="jclouds.blobstore.metaprefix")
                                              String metadataPrefix)
      • setHeaderTag

        @Inject
        public void setHeaderTag(@Named(value="jclouds.aws.header.tag")
                                         String headerTag)
      • getIfModifiedSince

        public String getIfModifiedSince()
        For use in the header x-amz-copy-source-if-unmodified-since

        Copies the object if it hasn't been modified since the specified time; otherwise returns a 412 (precondition failed).

        This header can be used with x-amz-copy-source-if-match, but cannot be used with other conditional copy headers.

        Returns:
        valid HTTP date
        See Also:
        ifSourceModifiedSince(Date)
      • getIfUnmodifiedSince

        public String getIfUnmodifiedSince()
        For use in the header x-amz-copy-source-if-modified-since

        Copies the object if it has been modified since the specified time; otherwise returns a 412 (failed condition).

        This header can be used with x-amz-copy-source-if-none-match, but cannot be used with other conditional copy headers.

        Returns:
        valid HTTP date
        See Also:
        ifSourceUnmodifiedSince(Date)
      • getIfMatch

        public String getIfMatch()
        For use in the request header: x-amz-copy-source-if-match

        Copies the object if its payload tag (ETag) matches the specified tag; otherwise return a 412 (precondition failed).

        This header can be used with x-amz-copy-source-if-unmodified-since, but cannot be used with other conditional copy headers.

        See Also:
        ifSourceETagMatches(String)
      • getIfNoneMatch

        public String getIfNoneMatch()
        For use in the request header: x-amz-copy-source-if-none-match

        Copies the object if its payload tag (ETag) is different than the specified Etag; otherwise returns a 412 (failed condition).

        This header can be used with x-amz-copy-source-if-modified-since, but cannot be used with other conditional copy headers.

        See Also:
        ifSourceETagDoesntMatch(String)
      • getMetadata

        public Map<String,String> getMetadata()
        When not null, contains the header [x-amz-copy-source-if-unmodified-since] -> [REPLACE] and metadata headers passed in from the users.
        See Also:
        #overrideMetadataWith(Multimap)
      • overrideMetadataWith

        public CopyObjectOptions overrideMetadataWith(Map<String,String> metadata)
        Use the provided metadata instead of what is on the source object.

Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.