Class BlobUploadFromFileOptions
java.lang.Object
com.azure.storage.blob.options.BlobUploadFromFileOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public class BlobUploadFromFileOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when uploading a blob from a file.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobUploadFromFileOptions(String filePath) Constructs aBlobUploadFromFileOptions. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the request.Gets the path of the file to upload.Gets theBlobHttpHeaders.Gets the metadata to associate with the blob.Gets theParallelTransferOptions.Gets theBlobRequestConditions.getTags()Gets the tags to associate with the blob.getTier()Gets theAccessTier.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the request.setHeaders(BlobHttpHeaders headers) Sets theBlobHttpHeaders.setMetadata(Map<String, String> metadata) Sets the metadata to associate with the blob.setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.Sets the tags to associate with the blob.setTier(AccessTier tier) Sets theAccessTier.
-
Constructor Details
-
BlobUploadFromFileOptions
Constructs aBlobUploadFromFileOptions.- Parameters:
filePath- Path of the file to upload.- Throws:
NullPointerException- IffilePathis null.
-
-
Method Details
-
getFilePath
Gets the path of the file to upload.- Returns:
- The path of the file to upload
-
getParallelTransferOptions
Gets theParallelTransferOptions.- Returns:
ParallelTransferOptions
-
setParallelTransferOptions
public BlobUploadFromFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions.- Parameters:
parallelTransferOptions-ParallelTransferOptions- Returns:
- The updated options.
-
getHeaders
-
setHeaders
Sets theBlobHttpHeaders.- Parameters:
headers-BlobHttpHeaders- Returns:
- The updated
AppendBlobCreateOptions
-
getMetadata
-
setMetadata
Sets the metadata to associate with the blob.- Parameters:
metadata- The metadata to associate with the blob.- Returns:
- The updated options
-
getTags
-
setTags
Sets the tags to associate with the blob.- Parameters:
tags- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
-
setTier
Sets theAccessTier.- Parameters:
tier-AccessTier- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation on the request. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public BlobUploadFromFileOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the request. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-