public class BlockBlobSimpleUploadOptions extends Object
Constructor and Description |
---|
BlockBlobSimpleUploadOptions(Flux<ByteBuffer> data,
long length) |
BlockBlobSimpleUploadOptions(InputStream data,
long length) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContentMd5() |
Flux<ByteBuffer> |
getDataFlux() |
InputStream |
getDataStream() |
BlobHttpHeaders |
getHeaders() |
long |
getLength() |
Map<String,String> |
getMetadata() |
BlobRequestConditions |
getRequestConditions() |
Map<String,String> |
getTags() |
AccessTier |
getTier() |
BlockBlobSimpleUploadOptions |
setContentMd5(byte[] contentMd5) |
BlockBlobSimpleUploadOptions |
setHeaders(BlobHttpHeaders headers) |
BlockBlobSimpleUploadOptions |
setMetadata(Map<String,String> metadata) |
BlockBlobSimpleUploadOptions |
setRequestConditions(BlobRequestConditions requestConditions) |
BlockBlobSimpleUploadOptions |
setTags(Map<String,String> tags) |
BlockBlobSimpleUploadOptions |
setTier(AccessTier tier) |
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
AppendBlobCreateOptions
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
Copyright © 2020 Microsoft Corporation. All rights reserved.