次の方法で共有


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()

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 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

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 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 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:

setHeaders

public BlobUploadFromFileOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

Parameters:

headers - BlobHttpHeaders

Returns:

The updated AppendBlobCreateOptions

setMetadata

public BlobUploadFromFileOptions setMetadata(Map 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 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