Package com.azure.storage.blob.models
Class BlockBlobItem
- java.lang.Object
-
- com.azure.storage.blob.models.BlockBlobItem
-
public class BlockBlobItem extends Object
This class contains the properties about a block blob.
-
-
Constructor Summary
Constructors Constructor Description BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256)Constructs aBlockBlobItem.BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256, String encryptionScope)Constructs aBlockBlobItem.BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256, String encryptionScope, String versionId)Constructs aBlockBlobItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContentMd5()StringgetEncryptionKeySha256()StringgetEncryptionScope()StringgetETag()OffsetDateTimegetLastModified()StringgetVersionId()BooleanisServerEncrypted()
-
-
-
Constructor Detail
-
BlockBlobItem
public BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256)
Constructs aBlockBlobItem.- Parameters:
eTag- ETag of the block blob.lastModified- Last modified time of the block blob.contentMd5- Content MD5 of the block blob.isServerEncrypted- Flag indicating if the block blob is encrypted on the server.encryptionKeySha256- The encryption key used to encrypt the block blob.
-
BlockBlobItem
public BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256, String encryptionScope)
Constructs aBlockBlobItem.- Parameters:
eTag- ETag of the block blob.lastModified- Last modified time of the block blob.contentMd5- Content MD5 of the block blob.isServerEncrypted- Flag indicating if the block blob is encrypted on the server.encryptionKeySha256- The encryption key used to encrypt the block blob.encryptionScope- The encryption scope used to encrypt the block blob.
-
BlockBlobItem
public BlockBlobItem(String eTag, OffsetDateTime lastModified, byte[] contentMd5, boolean isServerEncrypted, String encryptionKeySha256, String encryptionScope, String versionId)
Constructs aBlockBlobItem.- Parameters:
eTag- ETag of the block blob.lastModified- Last modified time of the block blob.contentMd5- Content MD5 of the block blob.isServerEncrypted- Flag indicating if the block blob is encrypted on the server.encryptionKeySha256- The encryption key used to encrypt the block blob.encryptionScope- The encryption scope used to encrypt the block blob.versionId- The version identifier of the block blob.
-
-
Method Detail
-
getETag
public String getETag()
- Returns:
- the eTag of the block blob
-
getLastModified
public OffsetDateTime getLastModified()
- Returns:
- the last time the block blob was modified
-
isServerEncrypted
public Boolean isServerEncrypted()
- Returns:
- the encryption status of the block blob on the server
-
getEncryptionKeySha256
public String getEncryptionKeySha256()
- Returns:
- the key used to encrypt the block blob
-
getEncryptionScope
public String getEncryptionScope()
- Returns:
- the encryption scope used to encrypt the block blob
-
getContentMd5
public byte[] getContentMd5()
- Returns:
- the MD5 of the block blob's comment
-
getVersionId
public String getVersionId()
- Returns:
- the version identifier of the block blob
-
-