PageBlobCreateOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. PageBlobCreateOptions
- com.
public class PageBlobCreateOptions
Extended options that may be passed when creating a Page Blob.
Constructor Summary
Constructor | Description |
---|---|
PageBlobCreateOptions(long size) |
Creates a new instance of PageBlobCreateOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
PageBlobCreateOptions
public PageBlobCreateOptions(long size)
Creates a new instance of PageBlobCreateOptions.
Parameters:
Method Details
getHeaders
getImmutabilityPolicy
getMetadata
public Map
Gets the metadata to associate with the blob.
Returns:
getRequestConditions
getSequenceNumber
public Long getSequenceNumber()
Gets a user-controlled value that you can use to track requests. The value of the sequence number must be between 0 and 2^63 - 1.The default value is 0.
Returns:
getSize
public long getSize()
Gets the maximum size for the page blob, up to 8 TB. The page blob size must be aligned to a 512-byte boundary.
Returns:
getTags
public Map
Gets the tags to associate with the blob.
Returns:
isLegalHold
public Boolean isLegalHold()
Gets if a legal hold should be placed on the blob.
Returns:
setHeaders
public PageBlobCreateOptions setHeaders(BlobHttpHeaders headers)
Sets the BlobHttpHeaders.
Parameters:
Returns:
AppendBlobCreateOptions
setImmutabilityPolicy
public PageBlobCreateOptions 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 PageBlobCreateOptions 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 PageBlobCreateOptions setMetadata(Map
Sets the metadata to associate with the blob.
Parameters:
Returns:
setRequestConditions
public PageBlobCreateOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns:
setSequenceNumber
public PageBlobCreateOptions setSequenceNumber(Long sequenceNumber)
Sets a user-controlled value that you can use to track requests. The value of the sequence number must be between 0 and 2^63 - 1.The default value is 0.
Parameters:
Returns:
setTags
public PageBlobCreateOptions setTags(Map
Sets the tags to associate with the blob.
Parameters:
Returns: