次の方法で共有


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)

Creates a new instance of BlobBeginCopyOptions.

Method Summary

Modifier and Type Method and Description
BlobRequestConditions getDestinationRequestConditions()

Gets the BlobRequestConditions for the destination.

BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy for the destination blob.

Map<String,String> getMetadata()

Gets the metadata to associate with the destination blob.

Duration getPollInterval()

Gets the duration between each poll for the copy status.

RehydratePriority getRehydratePriority()

Gets the RehydratePriority for rehydrating the blob.

BlobBeginCopySourceRequestConditions getSourceRequestConditions()

Gets the BlobBeginCopySourceRequestConditions for the source.

String getSourceUrl()

Gets the source URL.

Map<String,String> getTags()

Gets the tags to associate with the blob.

AccessTier getTier()

Gets the AccessTier for the destination blob.

Boolean isLegalHold()

Gets if a legal hold should be placed on the blob.

Boolean isSealDestination()

Gets whether the destination blob should be sealed (marked as read only).

BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)

Sets the BlobRequestConditions for the destination.

BlobBeginCopyOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the BlobImmutabilityPolicy for the destination blob.

BlobBeginCopyOptions setLegalHold(Boolean legalHold)

Sets if a legal hold should be placed on the blob.

BlobBeginCopyOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the destination blob.

BlobBeginCopyOptions setPollInterval(Duration pollInterval)

Sets the duration between each poll for the copy status.

BlobBeginCopyOptions setRehydratePriority(RehydratePriority rehydratePriority)

Sets the RehydratePriority for rehydrating the blob.

BlobBeginCopyOptions setSealDestination(Boolean sealDestination)

Sets whether the destination blob should be sealed (marked as read only).

BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions)

Sets the BlobBeginCopySourceRequestConditions for the source.

BlobBeginCopyOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

BlobBeginCopyOptions setTier(AccessTier tier)

Sets the AccessTier for the destination blob.

Methods inherited from java.lang.Object

Constructor Details

BlobBeginCopyOptions

public BlobBeginCopyOptions(String sourceUrl)

Creates a new instance of BlobBeginCopyOptions.

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()

Gets the BlobRequestConditions for the destination.

Returns:

BlobRequestConditions for the destination.

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy for the destination blob.

Returns:

getMetadata

public Map getMetadata()

Gets the metadata to associate with the destination blob.

Returns:

The metadata to associate with the destination blob.

getPollInterval

public Duration getPollInterval()

Gets the duration between each poll for the copy status.

Returns:

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

getRehydratePriority

public RehydratePriority getRehydratePriority()

Gets the RehydratePriority for rehydrating the blob.

Returns:

RehydratePriority for rehydrating the blob.

getSourceRequestConditions

public BlobBeginCopySourceRequestConditions getSourceRequestConditions()

Gets the BlobBeginCopySourceRequestConditions for the source.

Returns:

getSourceUrl

public String getSourceUrl()

Gets the source URL.

Returns:

The source URL.

getTags

public Map getTags()

Gets the tags to associate with the blob.

Returns:

The tags to associate with the blob.

getTier

public AccessTier getTier()

Gets the AccessTier for the destination blob.

Returns:

AccessTier for the destination blob.

isLegalHold

public Boolean isLegalHold()

Gets if a legal hold should be placed on the blob.

Returns:

If a legal hold should be placed on the blob.

isSealDestination

public Boolean isSealDestination()

Gets whether the destination blob should be sealed (marked as read only).

Only applicable for Append Blobs.

Returns:

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

setDestinationRequestConditions

public BlobBeginCopyOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)

Sets the BlobRequestConditions for the destination.

Parameters:

destinationRequestConditions - BlobRequestConditions for the destination

Returns:

The updated options.

setImmutabilityPolicy

public BlobBeginCopyOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the BlobImmutabilityPolicy for the destination blob.

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)

Sets if a legal hold should be placed on the blob.

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)

Sets the metadata to associate with the destination blob.

Parameters:

metadata - The metadata to associate with the destination blob.

Returns:

The updated options

setPollInterval

public BlobBeginCopyOptions setPollInterval(Duration pollInterval)

Sets the duration between each poll for the copy status.

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)

Sets the RehydratePriority for rehydrating the blob.

Parameters:

rehydratePriority - RehydratePriority for rehydrating the blob.

Returns:

The updated options.

setSealDestination

public BlobBeginCopyOptions setSealDestination(Boolean sealDestination)

Sets whether the destination blob should be sealed (marked as read only).

Only applicable for Append Blobs.

Parameters:

sealDestination - Whether the destination blob should be sealed (marked as read only).

Returns:

The updated options.

setSourceRequestConditions

public BlobBeginCopyOptions setSourceRequestConditions(BlobBeginCopySourceRequestConditions sourceRequestConditions)

Sets the BlobBeginCopySourceRequestConditions for the source.

Parameters:

sourceRequestConditions - BlobBeginCopySourceRequestConditions for the source.

Returns:

The updated options.

setTags

public BlobBeginCopyOptions setTags(Map tags)

Sets the tags to associate with the blob.

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public BlobBeginCopyOptions setTier(AccessTier tier)

Sets the AccessTier for the destination blob.

Parameters:

tier - AccessTier for the destination blob.

Returns:

The updated options.

Applies to