Package com.azure.storage.blob.options
Class BlockBlobStageBlockFromUrlOptions
- java.lang.Object
-
- com.azure.storage.blob.options.BlockBlobStageBlockFromUrlOptions
-
public final class BlockBlobStageBlockFromUrlOptions extends Object
Extended options that may be passed when staging a block from a source URL.
-
-
Constructor Summary
Constructors Constructor Description BlockBlobStageBlockFromUrlOptions(String base64BlockId, String sourceUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBase64BlockId()
String
getLeaseId()
com.azure.core.http.HttpAuthorization
getSourceAuthorization()
byte[]
getSourceContentMd5()
BlobRange
getSourceRange()
BlobRequestConditions
getSourceRequestConditions()
String
getSourceUrl()
BlockBlobStageBlockFromUrlOptions
setLeaseId(String leaseId)
BlockBlobStageBlockFromUrlOptions
setSourceAuthorization(com.azure.core.http.HttpAuthorization sourceAuthorization)
Sets "Authorization" header for accessing source URL.BlockBlobStageBlockFromUrlOptions
setSourceContentMd5(byte[] sourceContentMd5)
BlockBlobStageBlockFromUrlOptions
setSourceRange(BlobRange sourceRange)
BlockBlobStageBlockFromUrlOptions
setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)
-
-
-
Method Detail
-
getBase64BlockId
public String getBase64BlockId()
- Returns:
- The block ID to assign the new block.
-
getSourceUrl
public String getSourceUrl()
- Returns:
- The source URL to upload from.
-
getSourceRange
public BlobRange getSourceRange()
- Returns:
- Range of bytes to read from the source.
-
setSourceRange
public BlockBlobStageBlockFromUrlOptions setSourceRange(BlobRange sourceRange)
- 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
public BlockBlobStageBlockFromUrlOptions setSourceContentMd5(byte[] sourceContentMd5)
- Parameters:
sourceContentMd5
- MD5 of the source content.- Returns:
- The updated options.
-
getLeaseId
public String getLeaseId()
- Returns:
- Lease ID for accessing source content.
-
setLeaseId
public BlockBlobStageBlockFromUrlOptions setLeaseId(String leaseId)
- Parameters:
leaseId
- Lease ID for accessing source content.- Returns:
- The updated options.
-
getSourceRequestConditions
public BlobRequestConditions 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.
-
-