Partager via


BlobBeginCopyOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlobBeginCopyOptions

public class BlobBeginCopyOptions

Extended options that may be passed when beginning a copy operation.

Constructor Summary

Constructor Description
BlobBeginCopyOptions(String sourceUrl)

Method Summary

Modifier and Type Method and Description
BlobRequestConditions getDestinationRequestConditions()
BlobImmutabilityPolicy getImmutabilityPolicy()
Map<String,String> getMetadata()
Duration getPollInterval()
RehydratePriority getRehydratePriority()
BlobBeginCopySourceRequestConditions getSourceRequestConditions()
String getSourceUrl()
Map<String,String> getTags()
AccessTier getTier()
Boolean isLegalHold()
Boolean isSealDestination()

Only applicable for Append Blobs.

BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)
BlobBeginCopyOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.

BlobBeginCopyOptions setLegalHold(Boolean legalHold)

Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.

BlobBeginCopyOptions setMetadata(Map<String,String> metadata)
BlobBeginCopyOptions setPollInterval(Duration pollInterval)
BlobBeginCopyOptions setRehydratePriority(RehydratePriority rehydratePriority)
BlobBeginCopyOptions setSealDestination(Boolean sealDestination)

Only applicable for Append Blobs.

BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions)
BlobBeginCopyOptions setTags(Map<String,String> tags)
BlobBeginCopyOptions setTier(AccessTier tier)

Methods inherited from java.lang.Object

Constructor Details

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 Details

getDestinationRequestConditions

public BlobRequestConditions getDestinationRequestConditions()

Returns:

BlobRequestConditions for the destination.

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Returns:

getMetadata

public Map getMetadata()

Returns:

The metadata to associate with the destination blob.

getPollInterval

public Duration getPollInterval()

Returns:

Duration between each poll for the copy status. If none is specified, a default of one second is used.

getRehydratePriority

public RehydratePriority getRehydratePriority()

Returns:

RehydratePriority for rehydrating the blob.

getSourceRequestConditions

public BlobBeginCopySourceRequestConditions getSourceRequestConditions()

Returns:

getSourceUrl

public String getSourceUrl()

Returns:

The source URL.

getTags

public Map getTags()

Returns:

The tags to associate with the blob.

getTier

public AccessTier getTier()

Returns:

AccessTier for the destination blob.

isLegalHold

public Boolean isLegalHold()

Returns:

If a legal hold should be placed on the blob.

isSealDestination

public Boolean isSealDestination()

Only applicable for Append Blobs.

Returns:

Whether or not the destination blob should be sealed (marked as read only).

setDestinationRequestConditions

public BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)

Parameters:

destinationRequestConditions - BlobRequestConditions for the destination

Returns:

The updated options.

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.

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.

setMetadata

public BlobBeginCopyOptions setMetadata(Map metadata)

Parameters:

metadata - The metadata to associate with the destination blob.

Returns:

The updated options

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.

setRehydratePriority

public BlobBeginCopyOptions setRehydratePriority(RehydratePriority rehydratePriority)

Parameters:

rehydratePriority - RehydratePriority for rehydrating the blob.

Returns:

The updated options.

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.

setSourceRequestConditions

public BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions)

Parameters:

sourceRequestConditions - BlobBeginCopySourceRequestConditions for the source.

Returns:

The updated options.

setTags

public BlobBeginCopyOptions setTags(Map tags)

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public BlobBeginCopyOptions setTier(AccessTier tier)

Parameters:

tier - AccessTier for the destination blob.

Returns:

The updated options.

Applies to