你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobUploadFromUrlOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobUploadFromUrlOptions
- com.
public class BlobUploadFromUrlOptions
Extended options that may be passed when uploading a Block Blob from URL.
Constructor Summary
Constructor | Description | |
---|---|---|
BlobUploadFromUrlOptions(String sourceUrl) |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlobUploadFromUrlOptions
public BlobUploadFromUrlOptions(String sourceUrl)
Parameters:
Method Details
getContentMd5
public byte[] getContentMd5()
Returns:
getCopySourceTagsMode
public BlobCopySourceTagsMode getCopySourceTagsMode()
Returns:
getDestinationRequestConditions
getHeaders
getSourceAuthorization
public HttpAuthorization getSourceAuthorization()
Returns:
getSourceRequestConditions
getSourceUrl
public String getSourceUrl()
Returns:
getTags
public Map
Returns:
getTier
isCopySourceBlobProperties
public Boolean isCopySourceBlobProperties()
Optional, default is true. Indicates if properties from the source blob should be copied.
Returns:
setContentMd5
public BlobUploadFromUrlOptions setContentMd5(byte[] contentMd5)
Parameters:
Returns:
setCopySourceBlobProperties
public BlobUploadFromUrlOptions setCopySourceBlobProperties(Boolean copySourceBlobProperties)
Optional, default is true. Indicates if properties from the source blob should be copied.
Parameters:
Returns:
setCopySourceTagsMode
public BlobUploadFromUrlOptions setCopySourceTagsMode(BlobCopySourceTagsMode copySourceTags)
Sets the copy source tags mode
Parameters:
Returns:
setDestinationRequestConditions
public BlobUploadFromUrlOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)
Parameters:
Returns:
setHeaders
public BlobUploadFromUrlOptions setHeaders(BlobHttpHeaders headers)
Parameters:
Returns:
setSourceAuthorization
public BlobUploadFromUrlOptions setSourceAuthorization(HttpAuthorization sourceAuthorization)
Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.
Parameters:
Returns:
setSourceRequestConditions
public BlobUploadFromUrlOptions setSourceRequestConditions(BlobRequestConditions sourceRequestConditions)
Parameters:
Returns:
setTags
public BlobUploadFromUrlOptions setTags(Map
Parameters:
Returns:
setTier
public BlobUploadFromUrlOptions setTier(AccessTier tier)
Parameters:
Returns: