次の方法で共有


PageBlobCreateOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.PageBlobCreateOptions

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

Modifier and Type Method and Description
BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy.

Map<String,String> getMetadata()

Gets the metadata to associate with the blob.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Long getSequenceNumber()

Gets a user-controlled value that you can use to track requests.

long getSize()

Gets the maximum size for the page blob, up to 8 TB.

Map<String,String> getTags()

Gets the tags to associate with the blob.

Boolean isLegalHold()

Gets if a legal hold should be placed on the blob.

PageBlobCreateOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

PageBlobCreateOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)

Sets the BlobImmutabilityPolicy.

PageBlobCreateOptions setLegalHold(Boolean legalHold)

Sets if a legal hold should be placed on the blob.

PageBlobCreateOptions setMetadata(Map<String,String> metadata)

Sets the metadata to associate with the blob.

PageBlobCreateOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

PageBlobCreateOptions setSequenceNumber(Long sequenceNumber)

Sets a user-controlled value that you can use to track requests.

PageBlobCreateOptions setTags(Map<String,String> tags)

Sets the tags to associate with the blob.

Methods inherited from java.lang.Object

Constructor Details

PageBlobCreateOptions

public PageBlobCreateOptions(long size)

Creates a new instance of PageBlobCreateOptions.

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

getHeaders

public BlobHttpHeaders getHeaders()

Gets the BlobHttpHeaders.

Returns:

getImmutabilityPolicy

public BlobImmutabilityPolicy getImmutabilityPolicy()

Gets the BlobImmutabilityPolicy.

Returns:

getMetadata

public Map getMetadata()

Gets the metadata to associate with the blob.

Returns:

The metadata to associate with the blob.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

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:

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.

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.

getTags

public Map getTags()

Gets the tags to associate with the blob.

Returns:

The tags to associate with the blob.

isLegalHold

public Boolean isLegalHold()

Gets if a legal hold should be placed on the blob.

Returns:

If a legal hold should be placed on the blob.

setHeaders

public PageBlobCreateOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

Parameters:

headers - BlobHttpHeaders

Returns:

The updated 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:

immutabilityPolicy - BlobImmutabilityPolicy

Returns:

The updated options.

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:

legalHold - Indicates if a legal hold should be placed on the blob.

Returns:

The updated options.

setMetadata

public PageBlobCreateOptions setMetadata(Map metadata)

Sets the metadata to associate with the blob.

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options.

setRequestConditions

public PageBlobCreateOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

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:

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.

setTags

public PageBlobCreateOptions setTags(Map tags)

Sets the tags to associate with the blob.

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

Applies to