BlobParallelUploadOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobParallelUploadOptions
- com.
public class BlobParallelUploadOptions
Extended options that may be passed when uploading a Block Blob in parallel.
Constructor Summary
| Constructor | Description |
|---|---|
| BlobParallelUploadOptions(BinaryData data) |
Constructs a new |
| BlobParallelUploadOptions(InputStream dataStream) |
Constructs a new BlobParallelUploadOptions. |
| BlobParallelUploadOptions(InputStream dataStream, long length) |
Deprecated
length is no longer necessary; use BlobParallelUploadOptions(InputStream dataStream) instead.
Constructs a new BlobParallelUploadOptions. |
| BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux) |
Constructs a new BlobParallelUploadOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlobParallelUploadOptions
public BlobParallelUploadOptions(BinaryData data)
Constructs a new BlobParallelUploadOptions.
Parameters:
BlobParallelUploadOptions
public BlobParallelUploadOptions(InputStream dataStream)
Constructs a new BlobParallelUploadOptions. Note: the InputStream must be closed by the caller.
Parameters:
BlobParallelUploadOptions
@Deprecated
public BlobParallelUploadOptions(InputStream dataStream, long length)
Deprecated
Constructs a new BlobParallelUploadOptions.
Use BlobParallelUploadOptions(InputStream dataStream) instead to supply an InputStream without knowing the exact length beforehand.
Parameters:
BlobParallelUploadOptions
public BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new BlobParallelUploadOptions.
Parameters:
Flux be replayable. In other words, it does not have to support multiple subscribers and is not
expected to produce the same values across subscriptions.
Method Details
getContentValidationAlgorithm
public ContentValidationAlgorithm getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.
Returns:
getDataFlux
public Flux<ByteBuffer> getDataFlux()
Gets the data source.
Returns:
getDataStream
public InputStream getDataStream()
Gets the data source.
Returns:
getHeaders
getImmutabilityPolicy
getLength
@Deprecated
public long getLength()
Deprecated
Gets the length of the data.
Returns:
getMetadata
public Map<String,String> getMetadata()
Gets the metadata.
Returns:
getOptionalLength
public Long getOptionalLength()
Gets the length of the data.
Returns:
getParallelTransferOptions
public ParallelTransferOptions getParallelTransferOptions()
Gets the ParallelTransferOptions.
Returns:
getRequestConditions
getTags
public Map<String,String> getTags()
Get the tags.
Returns:
getTier
getTimeout
@Deprecated
public Duration getTimeout()
Deprecated
Gets the timeout.
Returns:
isComputeMd5
public boolean isComputeMd5()
Gets the computeMd5 property.
Returns:
isLegalHold
public Boolean isLegalHold()
Gets if a legal hold should be placed on the blob.
Returns:
setComputeMd5
public BlobParallelUploadOptions setComputeMd5(boolean computeMd5)
Sets the computeMd5 property.
Parameters:
Returns:
setContentValidationAlgorithm
public BlobParallelUploadOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation on the request. See ContentValidationAlgorithm for more details.
Parameters:
Returns:
setHeaders
public BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)
Sets the BlobHttpHeaders.
Parameters:
Returns:
setImmutabilityPolicy
public BlobParallelUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
Sets the BlobImmutabilityPolicy.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setLegalHold
public BlobParallelUploadOptions setLegalHold(Boolean legalHold)
Sets if a legal hold should be placed on the blob.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setMetadata
public BlobParallelUploadOptions setMetadata(Map<String,String> metadata)
Sets the metadata.
Parameters:
Returns:
setParallelTransferOptions
public BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
Sets the ParallelTransferOptions.
Parameters:
Returns:
setRequestConditions
public BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns:
setTags
public BlobParallelUploadOptions setTags(Map<String,String> tags)
Set the tags.
Parameters:
Returns:
setTier
public BlobParallelUploadOptions setTier(AccessTier tier)
Sets the AccessTier.
Parameters:
Returns:
setTimeout
@Deprecated
public BlobParallelUploadOptions setTimeout(Duration timeout)
Deprecated
Sets the timeout.
Parameters:
Returns: