BlockBlobSimpleUploadOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlockBlobSimpleUploadOptions
- com.
public class BlockBlobSimpleUploadOptions
Extended options that may be passed when uploading a Block Blob in a single request.
Constructor Summary
Constructor | Description | |
---|---|---|
BlockBlobSimpleUploadOptions(BinaryData data) | ||
BlockBlobSimpleUploadOptions(InputStream data, long length) | ||
BlockBlobSimpleUploadOptions(Flux<ByteBuffer> data, long length) |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlockBlobSimpleUploadOptions
public BlockBlobSimpleUploadOptions(BinaryData data)
Parameters:
BinaryData
must have defined length
and must be replayable if retries are enabled (the default), see BinaryData#isReplayable().
BlockBlobSimpleUploadOptions
public BlockBlobSimpleUploadOptions(InputStream data, long length)
Parameters:
BlockBlobSimpleUploadOptions
public BlockBlobSimpleUploadOptions(Flux
Parameters:
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.
Method Details
getContentMd5
public byte[] getContentMd5()
Returns:
getData
public BinaryData getData()
Returns:
getDataFlux
public Flux
Returns:
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.getDataStream
public InputStream getDataStream()
Returns:
getHeaders
getImmutabilityPolicy
getLength
public long getLength()
Returns:
getMetadata
public Map
Returns:
getRequestConditions
getTags
public Map
Returns:
getTier
isLegalHold
public Boolean isLegalHold()
Returns:
setContentMd5
public BlockBlobSimpleUploadOptions setContentMd5(byte[] contentMd5)
Parameters:
Returns:
setHeaders
public BlockBlobSimpleUploadOptions setHeaders(BlobHttpHeaders headers)
Parameters:
Returns:
setImmutabilityPolicy
public BlockBlobSimpleUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setLegalHold
public BlockBlobSimpleUploadOptions setLegalHold(Boolean legalHold)
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setMetadata
public BlockBlobSimpleUploadOptions setMetadata(Map
Parameters:
Returns:
setRequestConditions
public BlockBlobSimpleUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
Parameters:
Returns:
setTags
public BlockBlobSimpleUploadOptions setTags(Map
Parameters:
Returns:
setTier
public BlockBlobSimpleUploadOptions setTier(AccessTier tier)
Parameters:
Returns:
Applies to
Azure SDK for Java