Package com.azure.storage.blob.options
Class BlobBeginCopyOptions
- java.lang.Object
-
- com.azure.storage.blob.options.BlobBeginCopyOptions
-
public class BlobBeginCopyOptions extends Object
Extended options that may be passed when beginning a copy operation.
-
-
Constructor Summary
Constructors Constructor Description BlobBeginCopyOptions(String sourceUrl)
-
Method Summary
-
-
-
Constructor Detail
-
BlobBeginCopyOptions
public BlobBeginCopyOptions(String sourceUrl)
- Parameters:
sourceUrl- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Detail
-
getSourceUrl
public String getSourceUrl()
- Returns:
- The source URL.
-
getMetadata
public Map<String,String> getMetadata()
- Returns:
- The metadata to associate with the destination blob.
-
setMetadata
public BlobBeginCopyOptions setMetadata(Map<String,String> metadata)
- Parameters:
metadata- The metadata to associate with the destination blob.- Returns:
- The updated options
-
setTags
public BlobBeginCopyOptions setTags(Map<String,String> tags)
- Parameters:
tags- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
public AccessTier getTier()
- Returns:
AccessTierfor the destination blob.
-
setTier
public BlobBeginCopyOptions setTier(AccessTier tier)
- Parameters:
tier-AccessTierfor the destination blob.- Returns:
- The updated options.
-
getRehydratePriority
public RehydratePriority getRehydratePriority()
- Returns:
RehydratePriorityfor rehydrating the blob.
-
setRehydratePriority
public BlobBeginCopyOptions setRehydratePriority(RehydratePriority rehydratePriority)
- Parameters:
rehydratePriority-RehydratePriorityfor rehydrating the blob.- Returns:
- The updated options.
-
getSourceRequestConditions
public BlobBeginCopySourceRequestConditions getSourceRequestConditions()
- Returns:
BlobBeginCopySourceRequestConditionsfor the source.
-
setSourceRequestConditions
public BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions)
- Parameters:
sourceRequestConditions-BlobBeginCopySourceRequestConditionsfor the source.- Returns:
- The updated options.
-
getDestinationRequestConditions
public BlobRequestConditions getDestinationRequestConditions()
- Returns:
BlobRequestConditionsfor the destination.
-
setDestinationRequestConditions
public BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)
- Parameters:
destinationRequestConditions-BlobRequestConditionsfor the destination- Returns:
- The updated options.
-
getPollInterval
public Duration getPollInterval()
- Returns:
- Duration between each poll for the copy status. If none is specified, a default of one second is used.
-
setPollInterval
public BlobBeginCopyOptions setPollInterval(Duration pollInterval)
- 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
public Boolean isSealDestination()
Only applicable for Append Blobs.- Returns:
- Whether or not the destination blob should be sealed (marked as read only).
-
setSealDestination
public BlobBeginCopyOptions setSealDestination(Boolean sealDestination)
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
public BlobImmutabilityPolicy getImmutabilityPolicy()
- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
public BlobBeginCopyOptions 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.
-
isLegalHold
public Boolean isLegalHold()
- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
public BlobBeginCopyOptions 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.
-
-