public class BlockBlobSimpleUploadOptions extends Object
Constructor and Description |
---|
BlockBlobSimpleUploadOptions(Flux<ByteBuffer> data,
long length) |
BlockBlobSimpleUploadOptions(InputStream data,
long length) |
public BlockBlobSimpleUploadOptions(Flux<ByteBuffer> data, long length)
data
- The data to write to the blob. Note that this Flux
must be replayable if retries are enabled
(the default). In other words, the Flux must produce the same data each time it is subscribed to.length
- The exact length of the data. It is important that this value match precisely the length of the
data emitted by the data source.public BlockBlobSimpleUploadOptions(InputStream data, long length)
data
- 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 emitted by the data source.public Flux<ByteBuffer> getDataFlux()
Flux
must be replayable if retries are enabled
(the default). In other words, the Flux must produce the same data each time it is subscribed to.public InputStream getDataStream()
public long getLength()
public BlobHttpHeaders getHeaders()
BlobHttpHeaders
public BlockBlobSimpleUploadOptions setHeaders(BlobHttpHeaders headers)
headers
- BlobHttpHeaders
public Map<String,String> getMetadata()
public BlockBlobSimpleUploadOptions setMetadata(Map<String,String> metadata)
metadata
- The metadata to associate with the blob.public BlockBlobSimpleUploadOptions setTags(Map<String,String> tags)
tags
- The tags to associate with the blob.public AccessTier getTier()
AccessTier
public BlockBlobSimpleUploadOptions setTier(AccessTier tier)
tier
- AccessTier
public byte[] getContentMd5()
public BlockBlobSimpleUploadOptions setContentMd5(byte[] contentMd5)
contentMd5
- An MD5 hash of the block content. This hash is used to verify the integrity of the block during
transport. When this header is specified, the storage service compares the hash of the content that has arrived
with this header value. Note that this MD5 hash is not stored with the blob. If the two hashes do not match, the
operation will fail.public BlobRequestConditions getRequestConditions()
BlobRequestConditions
public BlockBlobSimpleUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
requestConditions
- BlobRequestConditions
public BlobImmutabilityPolicy getImmutabilityPolicy()
BlobImmutabilityPolicy
public BlockBlobSimpleUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
immutabilityPolicy
- BlobImmutabilityPolicy
public Boolean isLegalHold()
public BlockBlobSimpleUploadOptions 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.