次の方法で共有


BlobCopyFromUrlOptions Class

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

public class BlobCopyFromUrlOptions

Extended options that may be passed when copying a blob.

Constructor Summary

Constructor Description
BlobCopyFromUrlOptions(String copySource)

Creates a new instance of BlobCopyFromUrlOptions.

Method Summary

Modifier and Type Method and Description
String getCopySource()

Gets the source URL to copy from.

BlobCopySourceTagsMode getCopySourceTagsMode()

Gets the copy source tags mode.

BlobRequestConditions getDestinationRequestConditions()

Gets the BlobRequestConditions for the destination.

BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy.

Map<String,String> getMetadata()

Gets the metadata to associate with the destination blob.

HttpAuthorization getSourceAuthorization()

Gets "Authorization" header for accessing source URL.

RequestConditions getSourceRequestConditions()

Gets the RequestConditions for the source.

Map<String,String> getTags()

Gets the tags to associate with the blob.

AccessTier getTier()

Gets the AccessTier for the destination blob.

Boolean hasLegalHold()

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

BlobCopyFromUrlOptions setCopySourceTagsMode(BlobCopySourceTagsMode copySourceTags)

Sets the copy source tags mode

BlobCopyFromUrlOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)

Sets the BlobRequestConditions for the destination.

BlobCopyFromUrlOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the BlobImmutabilityPolicy.

BlobCopyFromUrlOptions setLegalHold(Boolean legalHold)

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

BlobCopyFromUrlOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the destination blob.

BlobCopyFromUrlOptions setSourceAuthorization(HttpAuthorization sourceAuthorization)

Sets "Authorization" header for accessing source URL.

BlobCopyFromUrlOptions setSourceRequestConditions(RequestConditions sourceRequestConditions)

Sets the RequestConditions for the source.

BlobCopyFromUrlOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

BlobCopyFromUrlOptions setTier(AccessTier tier)

Sets the AccessTier for the destination blob.

Methods inherited from java.lang.Object

Constructor Details

BlobCopyFromUrlOptions

public BlobCopyFromUrlOptions(String copySource)

Creates a new instance of BlobCopyFromUrlOptions.

Parameters:

copySource - The source URL to copy from. URLs outside of Azure may only be copied to block blobs.

Method Details

getCopySource

public String getCopySource()

Gets the source URL to copy from.

Returns:

The source URL to copy from. URLs outside of Azure may only be copied to block blobs.

getCopySourceTagsMode

public BlobCopySourceTagsMode getCopySourceTagsMode()

Gets the copy source tags mode.

Returns:

The copy source tags mode.

getDestinationRequestConditions

public BlobRequestConditions getDestinationRequestConditions()

Gets the BlobRequestConditions for the destination.

Returns:

BlobRequestConditions for the destination.

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy.

Returns:

getMetadata

public Map getMetadata()

Gets the metadata to associate with the destination blob.

Returns:

The metadata to associate with the destination blob.

getSourceAuthorization

public HttpAuthorization getSourceAuthorization()

Gets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.

Returns:

auth header for access to source.

getSourceRequestConditions

public RequestConditions getSourceRequestConditions()

Gets the RequestConditions for the source.

Returns:

RequestConditions for the source.

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.

hasLegalHold

public Boolean hasLegalHold()

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

Returns:

If a legal hold should be placed on the blob.

setCopySourceTagsMode

public BlobCopyFromUrlOptions setCopySourceTagsMode(BlobCopySourceTagsMode copySourceTags)

Sets the copy source tags mode

Parameters:

copySourceTags - Indicates if a legal hold should be placed on the blob.

Returns:

The updated options.

setDestinationRequestConditions

public BlobCopyFromUrlOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)

Sets the BlobRequestConditions for the destination.

Parameters:

destinationRequestConditions - BlobRequestConditions for the destination.

Returns:

The updated options.

setImmutabilityPolicy

public BlobCopyFromUrlOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the BlobImmutabilityPolicy.

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 BlobCopyFromUrlOptions 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 BlobCopyFromUrlOptions 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

setSourceAuthorization

public BlobCopyFromUrlOptions setSourceAuthorization(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.

setSourceRequestConditions

public BlobCopyFromUrlOptions setSourceRequestConditions(RequestConditions sourceRequestConditions)

Sets the RequestConditions for the source.

Parameters:

sourceRequestConditions - RequestConditions for the source.

Returns:

The updated options.

setTags

public BlobCopyFromUrlOptions 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 BlobCopyFromUrlOptions setTier(AccessTier tier)

Sets the AccessTier for the destination blob.

Parameters:

tier - AccessTier for the destination blob.

Returns:

The updated options.

Applies to