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

Method Summary

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

getFilePath

public String getFilePath()

Returns:

The path of the file to upload

getHeaders

public BlobHttpHeaders getHeaders()

Returns:

getMetadata

public Map getMetadata()

Returns:

The metadata to associate with the blob.

getParallelTransferOptions

public ParallelTransferOptions getParallelTransferOptions()

Returns:

getRequestConditions

public BlobRequestConditions getRequestConditions()

Returns:

getTags

public Map getTags()

Returns:

The tags to associate with the blob.

getTier

public AccessTier getTier()

Returns:

setHeaders

public BlobUploadFromFileOptions setHeaders(BlobHttpHeaders headers)

Parameters:

headers - BlobHttpHeaders

Returns:

The updated AppendBlobCreateOptions

setMetadata

public BlobUploadFromFileOptions setMetadata(Map metadata)

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options

setParallelTransferOptions

public BlobUploadFromFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)

Parameters:

parallelTransferOptions - ParallelTransferOptions

Returns:

The updated options.

setRequestConditions

public BlobUploadFromFileOptions setRequestConditions(BlobRequestConditions requestConditions)

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

setTags

public BlobUploadFromFileOptions setTags(Map tags)

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public BlobUploadFromFileOptions setTier(AccessTier tier)

Parameters:

tier - AccessTier

Returns:

The updated options.

Applies to

Azure SDK for Java

Latest