Package com.azure.storage.blob.options
Class BlobUploadFromFileOptions
java.lang.Object
com.azure.storage.blob.options.BlobUploadFromFileOptions
Extended options that may be passed when uploading a blob from a file.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobUploadFromFileOptions
(String filePath) Constructs aBlobUploadFromFileOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets 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
.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
- IffilePath
is 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
Gets theBlobHttpHeaders
.- Returns:
BlobHttpHeaders
-
setHeaders
Sets theBlobHttpHeaders
.- Parameters:
headers
-BlobHttpHeaders
- Returns:
- The updated
AppendBlobCreateOptions
-
getMetadata
Gets the metadata to associate with the blob.- Returns:
- The metadata to associate with the blob.
-
setMetadata
Sets the metadata to associate with the blob.- Parameters:
metadata
- The metadata to associate with the blob.- Returns:
- The updated options
-
getTags
Gets the tags to associate with the blob.- Returns:
- The tags to associate with the blob.
-
setTags
Sets the tags to associate with the blob.- Parameters:
tags
- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
Gets theAccessTier
.- Returns:
AccessTier
-
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.
-