Class PageBlobCreateOptions


  • public class PageBlobCreateOptions
    extends Object
    Extended options that may be passed when creating a Page Blob.
    • Constructor Detail

      • 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 Detail

      • 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

        public Long 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

        public PageBlobCreateOptions setSequenceNumber​(Long sequenceNumber)
        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.
      • getMetadata

        public Map<String,​String> getMetadata()
        Returns:
        The metadata to associate with the blob.
      • setMetadata

        public PageBlobCreateOptions setMetadata​(Map<String,​String> metadata)
        Parameters:
        metadata - The metadata to associate with the blob.
        Returns:
        The updated options.
      • getTags

        public Map<String,​String> getTags()
        Returns:
        The tags to associate with the blob.
      • setImmutabilityPolicy

        public PageBlobCreateOptions setImmutabilityPolicy​(BlobImmutabilityPolicy immutabilityPolicy)
        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

        public Boolean isLegalHold()
        Returns:
        If a legal hold should be placed on the blob.
      • setLegalHold

        public PageBlobCreateOptions setLegalHold​(Boolean legalHold)
        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.