Package com.azure.storage.blob.options
Class BlobBeginCopyOptions
java.lang.Object
com.azure.storage.blob.options.BlobBeginCopyOptions
Extended options that may be passed when beginning a copy operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTags()
getTier()
Only applicable for Append Blobs.setDestinationRequestConditions
(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) setPollInterval
(Duration pollInterval) setRehydratePriority
(RehydratePriority rehydratePriority) setSealDestination
(Boolean sealDestination) Only applicable for Append Blobs.setSourceRequestConditions
(BlobBeginCopySourceRequestConditions sourceRequestConditions) setTier
(AccessTier tier)
-
Constructor Details
-
BlobBeginCopyOptions
- Parameters:
sourceUrl
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Details
-
getSourceUrl
- Returns:
- The source URL.
-
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.
-
getRehydratePriority
- Returns:
RehydratePriority
for rehydrating the blob.
-
setRehydratePriority
- Parameters:
rehydratePriority
-RehydratePriority
for rehydrating the blob.- Returns:
- The updated options.
-
getSourceRequestConditions
- Returns:
BlobBeginCopySourceRequestConditions
for the source.
-
setSourceRequestConditions
public BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions) - Parameters:
sourceRequestConditions
-BlobBeginCopySourceRequestConditions
for the source.- Returns:
- The updated options.
-
getDestinationRequestConditions
- Returns:
BlobRequestConditions
for the destination.
-
setDestinationRequestConditions
public BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions) - Parameters:
destinationRequestConditions
-BlobRequestConditions
for the destination- Returns:
- The updated options.
-
getPollInterval
- Returns:
- Duration between each poll for the copy status. If none is specified, a default of one second is used.
-
setPollInterval
- Parameters:
pollInterval
- Duration between each poll for the copy status. If none is specified, a default of one second is used.- Returns:
- The updated options.
-
isSealDestination
Only applicable for Append Blobs.- Returns:
- Whether or not the destination blob should be sealed (marked as read only).
-
setSealDestination
Only applicable for Append Blobs.- Parameters:
sealDestination
- Whether or not the destination blob should be sealed (marked as read only).- 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.
-
isLegalHold
- 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.
-