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
ConstructorsConstructorDescriptionPageBlobCreateOptions(long size) Creates a new instance ofPageBlobCreateOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets theBlobHttpHeaders.Gets theBlobImmutabilityPolicy.Gets the metadata to associate with the blob.Gets theBlobRequestConditions.Gets a user-controlled value that you can use to track requests.longgetSize()Gets the maximum size for the page blob, up to 8 TB.getTags()Gets the tags to associate with the blob.Gets if a legal hold should be placed on the blob.setHeaders(BlobHttpHeaders headers) Sets theBlobHttpHeaders.setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy) Sets theBlobImmutabilityPolicy.setLegalHold(Boolean legalHold) Sets if a legal hold should be placed on the blob.setMetadata(Map<String, String> metadata) Sets the metadata to associate with the blob.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.setSequenceNumber(Long sequenceNumber) Sets a user-controlled value that you can use to track requests.Sets the tags to associate with the blob.
-
Constructor Details
-
PageBlobCreateOptions
public PageBlobCreateOptions(long size) Creates a new instance ofPageBlobCreateOptions.- 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()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:
- 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
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:
- 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
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:
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
Gets theBlobHttpHeaders.- Returns:
BlobHttpHeaders
-
setHeaders
Sets theBlobHttpHeaders.- Parameters:
headers-BlobHttpHeaders- Returns:
- The updated
AppendBlobCreateOptions
-
getMetadata
Gets the metadata to associate with the blob.- Returns:
- The metadata to associate with the blob.
-
setMetadata
Sets the metadata to associate with the blob.- Parameters:
metadata- The metadata to associate with the blob.- Returns:
- The updated options.
-
getTags
Gets the tags to associate with the blob.- Returns:
- The tags to associate with the blob.
-
setTags
Sets the tags to associate with the blob.- Parameters:
tags- The tags to associate with the blob.- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
setRequestConditions
Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
getImmutabilityPolicy
Gets theBlobImmutabilityPolicy.- Returns:
BlobImmutabilityPolicy
-
setImmutabilityPolicy
Sets theBlobImmutabilityPolicy.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
Gets if a legal hold should be placed on the blob.- Returns:
- If a legal hold should be placed on the blob.
-
setLegalHold
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:
legalHold- Indicates if a legal hold should be placed on the blob.- Returns:
- The updated options.
-