BlobUploadFromFileOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlobUploadFromFileOptions

public class BlobUploadFromFileOptions

Extended options that may be passed when uploading a blob from a file.

Constructor Summary

Constructor Description
BlobUploadFromFileOptions(String filePath)

Constructs a BlobUploadFromFileOptions.

Method Summary

Modifier and Type Method and Description
ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation on the request.

String getFilePath()

Gets the path of the file to upload.

BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

ParallelTransferOptions getParallelTransferOptions()

Gets the ParallelTransferOptions.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Map<String,String> getTags()

Gets the tags to associate with the blob.

AccessTier getTier()

Gets the AccessTier.

BlobUploadFromFileOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation on the request.

BlobUploadFromFileOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

BlobUploadFromFileOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

BlobUploadFromFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)

Sets the ParallelTransferOptions.

BlobUploadFromFileOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

BlobUploadFromFileOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

BlobUploadFromFileOptions setTier(AccessTier tier)

Sets the AccessTier.

Methods inherited from java.lang.Object

Constructor Details

BlobUploadFromFileOptions

public BlobUploadFromFileOptions(String filePath)

Constructs a BlobUploadFromFileOptions.

Parameters:

filePath - Path of the file to upload.

Method Details

getContentValidationAlgorithm

public ContentValidationAlgorithm getContentValidationAlgorithm()

Gets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.

Returns:

The transfer validation checksum algorithm.

getFilePath

public String getFilePath()

Gets the path of the file to upload.

Returns:

The path of the file to upload

getHeaders

public BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

Returns:

getMetadata

public Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

Returns:

The metadata to associate with the blob.

getParallelTransferOptions

public ParallelTransferOptions getParallelTransferOptions()

Gets the ParallelTransferOptions.

Returns:

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

getTags

public Map<String,String> getTags()

Gets the tags to associate with the blob.

Returns:

The tags to associate with the blob.

getTier

public AccessTier getTier()

Gets the AccessTier.

Returns:

setContentValidationAlgorithm

public BlobUploadFromFileOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)

Sets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.

Parameters:

contentValidationAlgorithm - The transfer validation checksum algorithm.

Returns:

The updated options.

setHeaders

public BlobUploadFromFileOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

Parameters:

headers - BlobHttpHeaders

Returns:

The updated AppendBlobCreateOptions

setMetadata

public BlobUploadFromFileOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options

setParallelTransferOptions

public BlobUploadFromFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)

Sets the ParallelTransferOptions.

Parameters:

parallelTransferOptions - ParallelTransferOptions

Returns:

The updated options.

setRequestConditions

public BlobUploadFromFileOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

setTags

public BlobUploadFromFileOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public BlobUploadFromFileOptions setTier(AccessTier tier)

Sets the AccessTier.

Parameters:

tier - AccessTier

Returns:

The updated options.

Applies to