Class BlobCopyFromUrlOptions

java.lang.Object
com.azure.storage.blob.options.BlobCopyFromUrlOptions

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

    • 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 Details

    • 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.
    • setTags

      public BlobCopyFromUrlOptions setTags(Map<String,String> tags)
      Parameters:
      tags - The tags to associate with the blob.
      Returns:
      The updated options.
    • getTier

      public AccessTier getTier()
      Returns:
      AccessTier for the destination blob.
    • setTier

      public BlobCopyFromUrlOptions setTier(AccessTier tier)
      Parameters:
      tier - AccessTier for the destination blob.
      Returns:
      The updated options.
    • 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.
    • getDestinationRequestConditions

      public BlobRequestConditions getDestinationRequestConditions()
      Returns:
      BlobRequestConditions for the destination.
    • setDestinationRequestConditions

      public BlobCopyFromUrlOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)
      Parameters:
      destinationRequestConditions - BlobRequestConditions for the destination.
      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.
    • getImmutabilityPolicy

      public BlobImmutabilityPolicy getImmutabilityPolicy()
      Returns:
      BlobImmutabilityPolicy
    • 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.