public class BlobParallelUploadOptions extends Object
Constructor and Description |
---|
BlobParallelUploadOptions(com.azure.core.util.BinaryData data)
Constructs a new
BlobParallelUploadOptions . |
BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new
BlobParallelUploadOptions . |
BlobParallelUploadOptions(InputStream dataStream)
Constructs a new
BlobParallelUploadOptions . |
BlobParallelUploadOptions(InputStream dataStream,
long length)
Deprecated.
length is no longer necessary; use
BlobParallelUploadOptions.BlobParallelUploadOptions(InputStream) instead. |
public BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
BlobParallelUploadOptions
.dataFlux
- The data to write to the blob. Unlike other upload methods, this method does not require that
the 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.@Deprecated public BlobParallelUploadOptions(InputStream dataStream, long length)
BlobParallelUploadOptions.BlobParallelUploadOptions(InputStream)
instead.BlobParallelUploadOptions
.
Use BlobParallelUploadOptions.BlobParallelUploadOptions(InputStream)
instead to supply an InputStream without knowing the exact
length beforehand.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 the InputStream
.public BlobParallelUploadOptions(InputStream dataStream)
BlobParallelUploadOptions
.dataStream
- The data to write to the blob.public BlobParallelUploadOptions(com.azure.core.util.BinaryData data)
BlobParallelUploadOptions
.data
- The data to write to the blob.public Flux<ByteBuffer> getDataFlux()
public InputStream getDataStream()
@Deprecated public long getLength()
BlobParallelUploadOptions.getOptionalLength()
to have safe access to a length that will not always exist.InputStream
.public Long getOptionalLength()
InputStream
.public ParallelTransferOptions getParallelTransferOptions()
ParallelTransferOptions
.ParallelTransferOptions
public BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
ParallelTransferOptions
.parallelTransferOptions
- ParallelTransferOptions
public BlobHttpHeaders getHeaders()
BlobHttpHeaders
.BlobHttpHeaders
public BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)
BlobHttpHeaders
.headers
- BlobHttpHeaders
public Map<String,String> getMetadata()
public BlobParallelUploadOptions setMetadata(Map<String,String> metadata)
metadata
- The metadata to associate with the blob.public Map<String,String> getTags()
public BlobParallelUploadOptions setTags(Map<String,String> tags)
tags
- The tags to associate with the blob.public AccessTier getTier()
AccessTier
.AccessTier
public BlobParallelUploadOptions setTier(AccessTier tier)
AccessTier
.tier
- AccessTier
public BlobRequestConditions getRequestConditions()
BlobRequestConditions
.BlobRequestConditions
public BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
BlobRequestConditions
.requestConditions
- BlobRequestConditions
public boolean isComputeMd5()
public BlobParallelUploadOptions setComputeMd5(boolean computeMd5)
computeMd5
- Whether or not the library should calculate the md5 and send it for the service to
verify.@Deprecated public Duration getTimeout()
BlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to
specify timeout.RuntimeException
will be raised.@Deprecated public BlobParallelUploadOptions setTimeout(Duration timeout)
BlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context)
to
specify timeout.timeout
- An optional timeout value beyond which a RuntimeException
will be raised.public BlobImmutabilityPolicy getImmutabilityPolicy()
BlobImmutabilityPolicy
public BlobParallelUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
immutabilityPolicy
- BlobImmutabilityPolicy
public Boolean isLegalHold()
public BlobParallelUploadOptions setLegalHold(Boolean legalHold)
legalHold
- Indicates if a legal hold should be placed on the blob.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.