Class BlobCopyFromUrlOptions


  • public class BlobCopyFromUrlOptions
    extends Object
    Extended options that may be passed when copying a blob.
    • Constructor Detail

      • BlobCopyFromUrlOptions

        public BlobCopyFromUrlOptions​(String copySource)
        Parameters:
        copySource - The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
    • Method Detail

      • getCopySource

        public String getCopySource()
        Returns:
        The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
      • getMetadata

        public Map<String,​String> getMetadata()
        Returns:
        The metadata to associate with the destination blob.
      • setMetadata

        public BlobCopyFromUrlOptions setMetadata​(Map<String,​String> metadata)
        Parameters:
        metadata - The metadata to associate with the destination blob.
        Returns:
        The updated options
      • getTags

        public Map<String,​String> getTags()
        Returns:
        The tags to associate with the blob.
      • getSourceRequestConditions

        public com.azure.core.http.RequestConditions getSourceRequestConditions()
        Returns:
        RequestConditions for the source.
      • setSourceRequestConditions

        public BlobCopyFromUrlOptions setSourceRequestConditions​(com.azure.core.http.RequestConditions sourceRequestConditions)
        Parameters:
        sourceRequestConditions - RequestConditions for the source.
        Returns:
        The updated options.
      • getSourceAuthorization

        public com.azure.core.http.HttpAuthorization getSourceAuthorization()
        Returns:
        auth header for access to source.
      • setSourceAuthorization

        public BlobCopyFromUrlOptions setSourceAuthorization​(com.azure.core.http.HttpAuthorization sourceAuthorization)
        Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.
        Parameters:
        sourceAuthorization - auth header for access to source.
        Returns:
        The updated options.
      • setImmutabilityPolicy

        public BlobCopyFromUrlOptions setImmutabilityPolicy​(BlobImmutabilityPolicy immutabilityPolicy)
        Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
        Parameters:
        immutabilityPolicy - BlobImmutabilityPolicy
        Returns:
        The updated options.
      • hasLegalHold

        public Boolean hasLegalHold()
        Returns:
        If a legal hold should be placed on the blob.
      • setLegalHold

        public BlobCopyFromUrlOptions setLegalHold​(Boolean legalHold)
        Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
        Parameters:
        legalHold - Indicates if a legal hold should be placed on the blob.
        Returns:
        The updated options.
      • getCopySourceTagsMode

        public BlobCopySourceTagsMode getCopySourceTagsMode()
        Returns:
        The copy source tags mode.
      • setCopySourceTagsMode

        public BlobCopyFromUrlOptions setCopySourceTagsMode​(BlobCopySourceTagsMode copySourceTags)
        Sets the copy source tags mode
        Parameters:
        copySourceTags - Indicates if a legal hold should be placed on the blob.
        Returns:
        The updated options.