Package com.azure.storage.blob.options
Class BlockBlobStageBlockFromUrlOptions
java.lang.Object
com.azure.storage.blob.options.BlockBlobStageBlockFromUrlOptions
Extended options that may be passed when staging a block from a source URL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.HttpAuthorization
byte[]
setLeaseId
(String leaseId) setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceContentMd5
(byte[] sourceContentMd5) setSourceRange
(BlobRange sourceRange) setSourceRequestConditions
(BlobRequestConditions sourceRequestConditions)
-
Constructor Details
-
BlockBlobStageBlockFromUrlOptions
- Parameters:
base64BlockId
- The block ID to assign the new block.sourceUrl
- The source URL to copy from. URLs outside of Azure may only be copied to block blobs.
-
-
Method Details
-
getBase64BlockId
- Returns:
- The block ID to assign the new block.
-
getSourceUrl
- Returns:
- The source URL to upload from.
-
getSourceRange
- Returns:
- Range of bytes to read from the source.
-
setSourceRange
- Parameters:
sourceRange
- Range of bytes to read from the source.- Returns:
- The updated options.
-
getSourceContentMd5
public byte[] getSourceContentMd5()- Returns:
- MD5 of the source content.
-
setSourceContentMd5
- Parameters:
sourceContentMd5
- MD5 of the source content.- Returns:
- The updated options.
-
getLeaseId
- Returns:
- Lease ID for accessing source content.
-
setLeaseId
- Parameters:
leaseId
- Lease ID for accessing source content.- Returns:
- The updated options.
-
getSourceRequestConditions
- Returns:
BlobRequestConditions
for accessing source content.
-
setSourceRequestConditions
public BlockBlobStageBlockFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions) - Parameters:
sourceRequestConditions
-BlobRequestConditions
for accessing source content.- Returns:
- The updated options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()- Returns:
- auth header to access source.
-
setSourceAuthorization
public BlockBlobStageBlockFromUrlOptions setSourceAuthorization(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.- Parameters:
sourceAuthorization
- auth header to access source.- Returns:
- The updated options.
-