BlobProperties Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobProperties
- com.
public final class BlobProperties
This class contains the response information returned from the service when getting blob properties.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
Access |
getAccessTier()
Gets the access tier of the blob. |
Offset |
getAccessTierChangeTime()
Gets the time when the access tier for the blob was last changed. |
Archive |
getArchiveStatus()
Gets the archive status of the blob. |
Long |
getBlobSequenceNumber()
Gets the current sequence number of the page blob. |
long |
getBlobSize()
Gets the size of the blob in bytes. |
Blob |
getBlobType()
Gets the type of the blob. |
String |
getCacheControl()
Gets the cache control of the blob. |
Integer |
getCommittedBlockCount()
Gets the number of committed blocks in the blob. |
String |
getContentDisposition()
Gets the content disposition of the blob. |
String |
getContentEncoding()
Gets the content encoding of the blob. |
String |
getContentLanguage()
Gets the content language of the blob. |
byte[] |
getContentMd5()
Gets the MD5 of the blob's content. |
String |
getContentType()
Gets the content type of the blob. |
Offset |
getCopyCompletionTime()
Gets the completion time of the last copy operation. |
String |
getCopyDestinationSnapshot()
Gets the snapshot time of the last successful incremental copy snapshot for this blob. |
String |
getCopyId()
Gets the identifier of the last copy operation. |
String |
getCopyProgress()
Gets the progress of the last copy operation. |
String |
getCopySource()
Gets the source blob URL from the last copy operation. |
Copy |
getCopyStatus()
Gets the status of the last copy operation. |
String |
getCopyStatusDescription()
Gets the description of the last copy failure. |
Offset |
getCreationTime()
Gets the time when the blob was created. |
String |
getEncryptionKeySha256()
Gets the SHA256 of the customer provided encryption key used to encrypt the blob on the server. |
String |
getEncryptionScope()
Gets the name of the encryption scope under which the blob is encrypted. |
String |
getETag()
Gets the e |
Offset |
getExpiresOn()
Gets the time when the blob is going to expire. |
Blob |
getImmutabilityPolicy()
Gets the immutability policy of the blob. |
Offset |
getLastAccessedTime()
Gets the date and time the blob was last read or written to. |
Offset |
getLastModified()
Gets the time when the blob was last modified. |
Lease |
getLeaseDuration()
Gets the lease duration of the blob, if the blob is leased. |
Lease |
getLeaseState()
Gets the lease state of the blob. |
Lease |
getLeaseStatus()
Gets the lease status of the blob. |
Map<String,String> |
getMetadata()
Gets the metadata associated with this blob. |
String |
getObjectReplicationDestinationPolicyId()
Gets a string that identifies the Object Replication Policy which made this blob the destination of a copy. |
List<Object |
getObjectReplicationSourcePolicies()
Gets a List that contains information on the object replication policies associated with this blob and the status of the replication for each policy. |
Rehydrate |
getRehydratePriority()
Gets the RehydratePriority of the blob if it is in Rehydrate |
String |
getRequestId()
Gets the request id. |
Long |
getTagCount()
Gets the number of tags associated with the blob. |
String |
getVersionId()
Gets the version identifier of the blob. |
Boolean |
hasLegalHold()
Gets the legal hold status of the blob. |
Boolean |
isAccessTierInferred()
Gets the status of the tier being inferred for the blob. |
Boolean |
isCurrentVersion()
Gets the flag indicating whether version identifier points to current version of the blob. |
Boolean |
isIncrementalCopy()
Gets the status of the blob being an incremental copy blob. |
Boolean |
isSealed()
Gets the flag indicating whether this blob has been sealed (marked as read only). |
Boolean |
isServerEncrypted()
Gets the status of the blob being encrypted on the server. |
Methods inherited from java.lang.Object
Constructor Details
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, String encryptionScope, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, String encryptionScope, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, String encryptionScope, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, String encryptionScope, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, String encryptionScope, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
BlobProperties
public BlobProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long blobSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, Long blobSequenceNumber, BlobType blobType, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, String copyDestinationSnapshot, AccessTier accessTier, Boolean isAccessTierInferred, ArchiveStatus archiveStatus, String encryptionKeySha256, OffsetDateTime accessTierChangeTime, Map
Constructs a BlobProperties.
Parameters:
null
.
null
.
Method Details
getAccessTier
public AccessTier getAccessTier()
Gets the access tier of the blob.
Returns:
getAccessTierChangeTime
public OffsetDateTime getAccessTierChangeTime()
Gets the time when the access tier for the blob was last changed.
Returns:
getArchiveStatus
public ArchiveStatus getArchiveStatus()
Gets the archive status of the blob.
Returns:
getBlobSequenceNumber
public Long getBlobSequenceNumber()
Gets the current sequence number of the page blob. This is only returned for page blobs.
Returns:
getBlobSize
public long getBlobSize()
Gets the size of the blob in bytes.
Returns:
getBlobType
public BlobType getBlobType()
Gets the type of the blob.
Returns:
getCacheControl
public String getCacheControl()
Gets the cache control of the blob.
Returns:
getCommittedBlockCount
public Integer getCommittedBlockCount()
Gets the number of committed blocks in the blob. This is only returned for Append blobs.
Returns:
getContentDisposition
public String getContentDisposition()
Gets the content disposition of the blob.
Returns:
getContentEncoding
public String getContentEncoding()
Gets the content encoding of the blob.
Returns:
getContentLanguage
public String getContentLanguage()
Gets the content language of the blob.
Returns:
getContentMd5
public byte[] getContentMd5()
Gets the MD5 of the blob's content.
Returns:
getContentType
public String getContentType()
Gets the content type of the blob.
Returns:
getCopyCompletionTime
public OffsetDateTime getCopyCompletionTime()
Gets the completion time of the last copy operation.
Returns:
getCopyDestinationSnapshot
public String getCopyDestinationSnapshot()
Gets the snapshot time of the last successful incremental copy snapshot for this blob.
Returns:
getCopyId
public String getCopyId()
Gets the identifier of the last copy operation.
Returns:
getCopyProgress
public String getCopyProgress()
Gets the progress of the last copy operation.
Returns:
getCopySource
public String getCopySource()
Gets the source blob URL from the last copy operation.
Returns:
getCopyStatus
public CopyStatusType getCopyStatus()
Gets the status of the last copy operation.
Returns:
getCopyStatusDescription
public String getCopyStatusDescription()
Gets the description of the last copy failure.
Returns:
getCreationTime
public OffsetDateTime getCreationTime()
Gets the time when the blob was created.
Returns:
getEncryptionKeySha256
public String getEncryptionKeySha256()
Gets the SHA256 of the customer provided encryption key used to encrypt the blob on the server.
Returns:
getEncryptionScope
public String getEncryptionScope()
Gets the name of the encryption scope under which the blob is encrypted.
Returns:
getETag
public String getETag()
Gets the eTag of the blob.
Returns:
getExpiresOn
public OffsetDateTime getExpiresOn()
Gets the time when the blob is going to expire.
Returns:
getImmutabilityPolicy
public BlobImmutabilityPolicy getImmutabilityPolicy()
Gets the immutability policy of the blob.
Returns:
getLastAccessedTime
public OffsetDateTime getLastAccessedTime()
Gets the date and time the blob was last read or written to.
Returns:
getLastModified
public OffsetDateTime getLastModified()
Gets the time when the blob was last modified.
Returns:
getLeaseDuration
public LeaseDurationType getLeaseDuration()
Gets the lease duration of the blob, if the blob is leased.
Returns:
getLeaseState
public LeaseStateType getLeaseState()
Gets the lease state of the blob.
Returns:
getLeaseStatus
public LeaseStatusType getLeaseStatus()
Gets the lease status of the blob.
Returns:
getMetadata
public Map
Gets the metadata associated with this blob.
Returns:
getObjectReplicationDestinationPolicyId
public String getObjectReplicationDestinationPolicyId()
Gets a string that identifies the Object Replication Policy which made this blob the destination of a copy.
Returns:
getObjectReplicationSourcePolicies
public List
Gets a List that contains information on the object replication policies associated with this blob and the status of the replication for each policy. Only available when the blob is the source of object replication.
Returns:
getRehydratePriority
public RehydratePriority getRehydratePriority()
Gets the RehydratePriority of the blob if it is in RehydratePending state.
Returns:
getRequestId
public String getRequestId()
Gets the request id.
Returns:
getTagCount
public Long getTagCount()
Gets the number of tags associated with the blob.
Returns:
getVersionId
public String getVersionId()
Gets the version identifier of the blob.
Returns:
hasLegalHold
public Boolean hasLegalHold()
Gets the legal hold status of the blob.
Returns:
isAccessTierInferred
public Boolean isAccessTierInferred()
Gets the status of the tier being inferred for the blob.
Returns:
isCurrentVersion
public Boolean isCurrentVersion()
Gets the flag indicating whether version identifier points to current version of the blob.
Returns:
isIncrementalCopy
public Boolean isIncrementalCopy()
Gets the status of the blob being an incremental copy blob.
Returns:
isSealed
public Boolean isSealed()
Gets the flag indicating whether this blob has been sealed (marked as read only). This is only returned for Append blobs.
Returns:
isServerEncrypted
public Boolean isServerEncrypted()
Gets the status of the blob being encrypted on the server.
Returns: