Package com.azure.storage.blob.options
Class PageBlobCreateOptions
java.lang.Object
com.azure.storage.blob.options.PageBlobCreateOptions
Extended options that may be passed when creating a Page Blob.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize()
getTags()
setHeaders
(BlobHttpHeaders headers) setImmutabilityPolicy
(BlobImmutabilityPolicy immutabilityPolicy) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setLegalHold
(Boolean legalHold) Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.setMetadata
(Map<String, String> metadata) setRequestConditions
(BlobRequestConditions requestConditions) setSequenceNumber
(Long sequenceNumber)
-
Constructor Details
-
PageBlobCreateOptions
public PageBlobCreateOptions(long size) - Parameters:
size
- Specifies the maximum size for the page blob, up to 8 TB. The page blob size must be aligned to a 512-byte boundary.
-
-
Method Details
-
getSize
public long getSize()- Returns:
- Specifies the maximum size for the page blob, up to 8 TB. The page blob size must be aligned to a 512-byte boundary.
-
getSequenceNumber
- Returns:
- 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.
-
setSequenceNumber
- Parameters:
sequenceNumber
- 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:
- The updated options.
-
getHeaders
- Returns:
BlobHttpHeaders
-
setHeaders
- Parameters:
headers
-BlobHttpHeaders
- Returns:
- The updated
AppendBlobCreateOptions
-
getMetadata
- Returns:
- The metadata to associate with the blob.
-
setMetadata
- Parameters:
metadata
- The metadata to associate with the blob.- Returns:
- The updated options.
-
getTags
- Returns:
- The tags to associate with the blob.
-
setTags
- Parameters:
tags
- The tags to associate with the blob.- Returns:
- The updated options.
-
getRequestConditions
- Returns:
BlobRequestConditions
-
setRequestConditions
- Parameters:
requestConditions
-BlobRequestConditions
- Returns:
- The updated options.
-
getImmutabilityPolicy
- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.- Parameters:
immutabilityPolicy
-BlobImmutabilityPolicy
- Returns:
- The updated options.
-
isLegalHold
- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.- Parameters:
legalHold
- Indicates if a legal hold should be placed on the blob.- Returns:
- The updated options.
-