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) |
Creates a new instance of BlockBlobSimpleUploadOptions. |
BlockBlobSimpleUploadOptions(InputStream data, long length) |
Creates a new instance of BlockBlobSimpleUploadOptions. |
BlockBlobSimpleUploadOptions(Flux<ByteBuffer> data, long length) |
Creates a new instance of BlockBlobSimpleUploadOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlockBlobSimpleUploadOptions
public BlockBlobSimpleUploadOptions(BinaryData data)
Creates a new instance of BlockBlobSimpleUploadOptions.
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)
Creates a new instance of BlockBlobSimpleUploadOptions.
Parameters:
BlockBlobSimpleUploadOptions
public BlockBlobSimpleUploadOptions(Flux
Creates a new instance of BlockBlobSimpleUploadOptions.
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()
Gets the MD5 hash of the content.
Returns:
getData
public BinaryData getData()
Gets the data to write to the blob.
Returns:
getDataFlux
public Flux
Gets the data to write to the blob.
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()
Gets the data to write to the blob.
Returns:
getHeaders
getImmutabilityPolicy
getLength
public long getLength()
Gets the exact length of the data.
Returns:
getMetadata
public Map
Gets the metadata to associate with the blob.
Returns:
getRequestConditions
getTags
public Map
Gets the tags to associate with the blob.
Returns:
getTier
isLegalHold
public Boolean isLegalHold()
Gets if a legal hold should be placed on the blob.
Returns:
setContentMd5
public BlockBlobSimpleUploadOptions setContentMd5(byte[] contentMd5)
Sets the MD5 hash of the content.
Parameters:
Returns:
setHeaders
public BlockBlobSimpleUploadOptions setHeaders(BlobHttpHeaders headers)
Sets the BlobHttpHeaders.
Parameters:
Returns:
setImmutabilityPolicy
public BlockBlobSimpleUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
Sets the BlobImmutabilityPolicy.
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)
Sets if a legal hold should be placed on the blob.
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
Sets the metadata to associate with the blob.
Parameters:
Returns:
setRequestConditions
public BlockBlobSimpleUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns:
setTags
public BlockBlobSimpleUploadOptions setTags(Map
Sets the tags to associate with the blob.
Parameters:
Returns:
setTier
public BlockBlobSimpleUploadOptions setTier(AccessTier tier)
Sets the AccessTier.
Parameters:
Returns: