Package com.azure.storage.blob.options
Class BlobCopyFromUrlOptions
java.lang.Object
com.azure.storage.blob.options.BlobCopyFromUrlOptions
Extended options that may be passed when copying a blob.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.HttpAuthorization
com.azure.core.http.RequestConditions
getTags()
getTier()
setCopySourceTagsMode
(BlobCopySourceTagsMode copySourceTags) Sets the copy source tags modesetDestinationRequestConditions
(BlobRequestConditions destinationRequestConditions) setImmutabilityPolicy
(BlobImmutabilityPolicy immutabilityPolicy) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setLegalHold
(Boolean legalHold) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setMetadata
(Map<String, String> metadata) setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceRequestConditions
(com.azure.core.http.RequestConditions sourceRequestConditions) setTier
(AccessTier tier)
-
Constructor Details
-
BlobCopyFromUrlOptions
- Parameters:
copySource
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Details
-
getCopySource
- Returns:
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
getMetadata
- Returns:
- The metadata to associate with the destination blob.
-
setMetadata
- Parameters:
metadata
- The metadata to associate with the destination blob.- Returns:
- The updated options
-
getTags
- Returns:
- The tags to associate with the blob.
-
setTags
- Parameters:
tags
- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
- Returns:
AccessTier
for the destination blob.
-
setTier
- 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
- 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
- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
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
- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
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
- Returns:
- The copy source tags mode.
-
setCopySourceTagsMode
Sets the copy source tags mode- Parameters:
copySourceTags
- Indicates if a legal hold should be placed on the blob.- Returns:
- The updated options.
-