Compartilhar via


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
String getFilePath()
BlobHttpHeaders getHeaders()
Map<String,String> getMetadata()
ParallelTransferOptions getParallelTransferOptions()
BlobRequestConditions getRequestConditions()
Map<String,String> getTags()
AccessTier getTier()
BlobUploadFromFileOptions setHeaders(BlobHttpHeaders headers)
BlobUploadFromFileOptions setMetadata(Map<String,String> metadata)
BlobUploadFromFileOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
BlobUploadFromFileOptions setRequestConditions(BlobRequestConditions requestConditions)
BlobUploadFromFileOptions setTags(Map<String,String> tags)
BlobUploadFromFileOptions setTier(AccessTier tier)

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