Package com.azure.storage.blob.options
Class BlobParallelUploadOptions
java.lang.Object
com.azure.storage.blob.options.BlobParallelUploadOptions
Extended options that may be passed when uploading a Block Blob in parallel.
-
Constructor Summary
ConstructorDescriptionBlobParallelUploadOptions
(com.azure.core.util.BinaryData data) Constructs a newBlobParallelUploadOptions
.BlobParallelUploadOptions
(InputStream dataStream) Constructs a newBlobParallelUploadOptions
.BlobParallelUploadOptions
(InputStream dataStream, long length) Deprecated.BlobParallelUploadOptions
(Flux<ByteBuffer> dataFlux) Constructs a newBlobParallelUploadOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets the data source.Gets the data source.Gets theBlobHttpHeaders
.long
Deprecated.usegetOptionalLength()
to have safe access to a length that will not always exist.Gets the metadata.Gets the length of the data.Gets theParallelTransferOptions
.Gets theBlobRequestConditions
.getTags()
Get the tags.getTier()
Gets theAccessTier
.Deprecated.UseBlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to specify timeout.boolean
setComputeMd5
(boolean computeMd5) Sets the computeMd5 property.setHeaders
(BlobHttpHeaders headers) Sets theBlobHttpHeaders
.setImmutabilityPolicy
(BlobImmutabilityPolicy immutabilityPolicy) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setLegalHold
(Boolean legalHold) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setMetadata
(Map<String, String> metadata) Sets the metadata.setParallelTransferOptions
(ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions
.setRequestConditions
(BlobRequestConditions requestConditions) Sets theBlobRequestConditions
.Set the tags.setTier
(AccessTier tier) Sets theAccessTier
.setTimeout
(Duration timeout) Deprecated.UseBlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to specify timeout.
-
Constructor Details
-
BlobParallelUploadOptions
Constructs a newBlobParallelUploadOptions
.- Parameters:
dataFlux
- The data to write to the blob. Unlike other upload methods, this method does not require that theFlux
be replayable. In other words, it does not have to support multiple subscribers and is not expected to produce the same values across subscriptions.
-
BlobParallelUploadOptions
Deprecated.length is no longer necessary; useBlobParallelUploadOptions(InputStream)
instead.Constructs a newBlobParallelUploadOptions
. UseBlobParallelUploadOptions(InputStream)
instead to supply an InputStream without knowing the exact length beforehand.- Parameters:
dataStream
- The data to write to the blob.length
- The exact length of the data. It is important that this value match precisely the length of the data provided in theInputStream
.
-
BlobParallelUploadOptions
Constructs a newBlobParallelUploadOptions
. Note: theInputStream
must be closed by the caller.- Parameters:
dataStream
- The data to write to the blob.
-
BlobParallelUploadOptions
public BlobParallelUploadOptions(com.azure.core.util.BinaryData data) Constructs a newBlobParallelUploadOptions
.- Parameters:
data
- The data to write to the blob.
-
-
Method Details
-
getDataFlux
Gets the data source.- Returns:
- The data to write to the blob.
-
getDataStream
Gets the data source.- Returns:
- The data to write to the blob.
-
getLength
Deprecated.usegetOptionalLength()
to have safe access to a length that will not always exist.Gets the length of the data.- Returns:
- The exact length of the data. It is important that this value match precisely the length of the
data provided in the
InputStream
.
-
getOptionalLength
Gets the length of the data.- Returns:
- The exact length of the data. It is important that this value match precisely the length of the
data provided in the
InputStream
.
-
getParallelTransferOptions
Gets theParallelTransferOptions
.- Returns:
ParallelTransferOptions
-
setParallelTransferOptions
public BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions) Sets theParallelTransferOptions
.- Parameters:
parallelTransferOptions
-ParallelTransferOptions
- Returns:
- The updated options.
-
getHeaders
Gets theBlobHttpHeaders
.- Returns:
BlobHttpHeaders
-
setHeaders
Sets theBlobHttpHeaders
.- Parameters:
headers
-BlobHttpHeaders
- Returns:
- The updated options
-
getMetadata
Gets the metadata.- Returns:
- The metadata to associate with the blob.
-
setMetadata
Sets the metadata.- Parameters:
metadata
- The metadata to associate with the blob.- Returns:
- The updated options.
-
getTags
Get the tags.- Returns:
- The tags to associate with the blob.
-
setTags
Set the tags.- Parameters:
tags
- The tags to associate with the blob.- Returns:
- The updated options.
-
getTier
Gets theAccessTier
.- Returns:
AccessTier
-
setTier
Sets theAccessTier
.- Parameters:
tier
-AccessTier
- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions
.- Returns:
BlobRequestConditions
-
setRequestConditions
Sets theBlobRequestConditions
.- Parameters:
requestConditions
-BlobRequestConditions
- Returns:
- The updated options.
-
isComputeMd5
public boolean isComputeMd5()- Returns:
- Whether or not the library should calculate the md5 and send it for the service to verify.
-
setComputeMd5
Sets the computeMd5 property.- Parameters:
computeMd5
- Whether or not the library should calculate the md5 and send it for the service to verify.- Returns:
- The updated options.
-
getTimeout
Deprecated.UseBlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to specify timeout.Gets the timeout.- Returns:
- An optional timeout value beyond which a
RuntimeException
will be raised.
-
setTimeout
Deprecated.UseBlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to specify timeout.Sets the timeout.- Parameters:
timeout
- An optional timeout value beyond which aRuntimeException
will be raised.- Returns:
- The updated options
-
getImmutabilityPolicy
- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.- Parameters:
immutabilityPolicy
-BlobImmutabilityPolicy
- Returns:
- The updated options.
-
isLegalHold
- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.- Parameters:
legalHold
- Indicates if a legal hold should be placed on the blob.- Returns:
- The updated options.
-
BlobParallelUploadOptions(InputStream)
instead.