AppendBlobAppendBlockFromUrlOptions Class

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

public final class AppendBlobAppendBlockFromUrlOptions

Extended options that may be passed when appending a block from a source URL.

Constructor Summary

Constructor Description
AppendBlobAppendBlockFromUrlOptions(String sourceUrl)

Creates a new instance of AppendBlobAppendBlockFromUrlOptions.

Method Summary

Modifier and Type Method and Description
AppendBlobRequestConditions getDestinationRequestConditions()

Gets the AppendBlobRequestConditions for writing to destination.

HttpAuthorization getSourceAuthorization()

Gets the auth header for accessing source.

byte[] getSourceContentMd5()

Gets the MD5 of the source content to be appended.

CustomerProvidedKey getSourceCustomerProvidedKey()

Gets the optional CustomerProvidedKey used for encrypting the source blob.

BlobRange getSourceRange()

Gets the range of bytes to read from the source.

BlobRequestConditions getSourceRequestConditions()

Gets the BlobRequestConditions for accessing source.

FileShareTokenIntent getSourceShareTokenIntent()

Optional, only applicable (but required) when the source is Azure Storage Files and using token authentication.

String getSourceUrl()

Gets the source URL to copy from.

AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions)

Sets the AppendBlobRequestConditions for writing to destination.

AppendBlobAppendBlockFromUrlOptions setSourceAuthorization(HttpAuthorization sourceAuthorization)

Sets "Authorization" header for accessing source URL.

AppendBlobAppendBlockFromUrlOptions setSourceContentMd5(byte[] sourceContentMd5)

Sets the MD5 of the source content to be appended.

AppendBlobAppendBlockFromUrlOptions setSourceCustomerProvidedKey(CustomerProvidedKey sourceCustomerProvidedKey)

Sets the optional CustomerProvidedKey used for encrypting the source blob.

AppendBlobAppendBlockFromUrlOptions setSourceRange(BlobRange sourceRange)

Sets the range of bytes to read from the source.

AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)

Sets the BlobRequestConditions for accessing source.

AppendBlobAppendBlockFromUrlOptions setSourceShareTokenIntent(FileShareTokenIntent sourceShareTokenIntent)

Optional, only applicable (but required) when the source is Azure Storage Files and using token authentication.

Methods inherited from java.lang.Object

Constructor Details

AppendBlobAppendBlockFromUrlOptions

public AppendBlobAppendBlockFromUrlOptions(String sourceUrl)

Creates a new instance of AppendBlobAppendBlockFromUrlOptions.

Parameters:

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

Method Details

getDestinationRequestConditions

public AppendBlobRequestConditions getDestinationRequestConditions()

Gets the AppendBlobRequestConditions for writing to destination.

Returns:

AppendBlobRequestConditions for writing to destination.

getSourceAuthorization

public HttpAuthorization getSourceAuthorization()

Gets the auth header for accessing source.

Returns:

auth header for accessing source.

getSourceContentMd5

public byte[] getSourceContentMd5()

Gets the MD5 of the source content to be appended.

Returns:

MD5 of the source content to be appended.

getSourceCustomerProvidedKey

public CustomerProvidedKey getSourceCustomerProvidedKey()

Gets the optional CustomerProvidedKey used for encrypting the source blob. Applicable only for service version 2026-02-06 or later.

Returns:

the CustomerProvidedKey used for encrypting the source blob.

getSourceRange

public BlobRange getSourceRange()

Gets the range of bytes to read from the source.

Returns:

Range of bytes to read from the source.

getSourceRequestConditions

public BlobRequestConditions getSourceRequestConditions()

Gets the BlobRequestConditions for accessing source.

Returns:

BlobRequestConditions for accessing source.

getSourceShareTokenIntent

public FileShareTokenIntent getSourceShareTokenIntent()

Optional, only applicable (but required) when the source is Azure Storage Files and using token authentication. Gets the intent of the request.

Returns:

the FileShareTokenIntent for the file share.

getSourceUrl

public String getSourceUrl()

Gets the source URL to copy from.

Returns:

Source URL to copy from.

setDestinationRequestConditions

public AppendBlobAppendBlockFromUrlOptions setDestinationRequestConditions(AppendBlobRequestConditions destinationRequestConditions)

Sets the AppendBlobRequestConditions for writing to destination.

Parameters:

destinationRequestConditions - AppendBlobRequestConditions for writing to destination.

Returns:

The updated options.

setSourceAuthorization

public AppendBlobAppendBlockFromUrlOptions setSourceAuthorization(HttpAuthorization sourceAuthorization)

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

Parameters:

sourceAuthorization - auth header for accessing source.

Returns:

The updated options.

setSourceContentMd5

public AppendBlobAppendBlockFromUrlOptions setSourceContentMd5(byte[] sourceContentMd5)

Sets the MD5 of the source content to be appended.

Parameters:

sourceContentMd5 - MD5 of the source content to be appended.

Returns:

The updated options.

setSourceCustomerProvidedKey

public AppendBlobAppendBlockFromUrlOptions setSourceCustomerProvidedKey(CustomerProvidedKey sourceCustomerProvidedKey)

Sets the optional CustomerProvidedKey used for encrypting the source blob. Applicable only for service version 2026-02-06 or later.

Parameters:

sourceCustomerProvidedKey - The CustomerProvidedKey used for encrypting the source blob.

Returns:

The updated options.

setSourceRange

public AppendBlobAppendBlockFromUrlOptions setSourceRange(BlobRange sourceRange)

Sets the range of bytes to read from the source.

Parameters:

sourceRange - Range of bytes to read from the source.

Returns:

The updated options.

setSourceRequestConditions

public AppendBlobAppendBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)

Sets the BlobRequestConditions for accessing source.

Parameters:

sourceRequestConditions - BlobRequestConditions for accessing source.

Returns:

The updated options.

setSourceShareTokenIntent

public AppendBlobAppendBlockFromUrlOptions setSourceShareTokenIntent(FileShareTokenIntent sourceShareTokenIntent)

Optional, only applicable (but required) when the source is Azure Storage Files and using token authentication. Sets the intent of the request.

Parameters:

sourceShareTokenIntent - Used to indicate the intent of the request.

Returns:

The updated options.

Applies to