Class PathProperties
java.lang.Object
com.azure.storage.file.datalake.models.PathProperties
This class contains the response information returned from the service when getting path properties.
-
Constructor Summary
ConstructorsConstructorDescriptionPathProperties
(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long fileSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, AccessTier accessTier, ArchiveStatus archiveStatus, String encryptionKeySha256, OffsetDateTime accessTierChangeTime, Map<String, String> metadata) Constructs aPathProperties
.PathProperties
(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long fileSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, AccessTier accessTier, ArchiveStatus archiveStatus, String encryptionKeySha256, OffsetDateTime accessTierChangeTime, Map<String, String> metadata, OffsetDateTime expiresOn) Constructs aPathProperties
. -
Method Summary
-
Constructor Details
-
PathProperties
public PathProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long fileSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, AccessTier accessTier, ArchiveStatus archiveStatus, String encryptionKeySha256, OffsetDateTime accessTierChangeTime, Map<String, String> metadata) Constructs aPathProperties
.- Parameters:
creationTime
- Creation time of the file.lastModified
- Datetime when the file was last modified.eTag
- ETag of the file.fileSize
- Size of the file.contentType
- Content type specified for the file.contentMd5
- Content MD5 specified for the file.contentEncoding
- Content encoding specified for the file.contentDisposition
- Content disposition specified for the file.contentLanguage
- Content language specified for the file.cacheControl
- Cache control specified for the file.leaseStatus
- Status of the lease on the file.leaseState
- State of the lease on the file.leaseDuration
- Type of lease on the file.copyId
- Identifier of the last copy operation performed on the file.copyStatus
- Status of the last copy operation performed on the file.copySource
- Source of the last copy operation performed on the file.copyProgress
- Progress of the last copy operation performed on the file.copyCompletionTime
- Datetime when the last copy operation on the file completed.copyStatusDescription
- Description of the last copy operation on the file.isServerEncrypted
- Flag indicating if the file's content is encrypted on the server.isIncrementalCopy
- Flag indicating if the file was incrementally copied.accessTier
- Access tier of the file.archiveStatus
- Archive status of the file.encryptionKeySha256
- SHA256 of the customer provided encryption key used to encrypt the file on the server.accessTierChangeTime
- Datetime when the access tier of the file last changed.metadata
- Metadata associated with the file. passnull
.
-
PathProperties
public PathProperties(OffsetDateTime creationTime, OffsetDateTime lastModified, String eTag, long fileSize, String contentType, byte[] contentMd5, String contentEncoding, String contentDisposition, String contentLanguage, String cacheControl, LeaseStatusType leaseStatus, LeaseStateType leaseState, LeaseDurationType leaseDuration, String copyId, CopyStatusType copyStatus, String copySource, String copyProgress, OffsetDateTime copyCompletionTime, String copyStatusDescription, Boolean isServerEncrypted, Boolean isIncrementalCopy, AccessTier accessTier, ArchiveStatus archiveStatus, String encryptionKeySha256, OffsetDateTime accessTierChangeTime, Map<String, String> metadata, OffsetDateTime expiresOn) Constructs aPathProperties
.- Parameters:
creationTime
- Creation time of the file.lastModified
- Datetime when the file was last modified.eTag
- ETag of the file.fileSize
- Size of the file.contentType
- Content type specified for the file.contentMd5
- Content MD5 specified for the file.contentEncoding
- Content encoding specified for the file.contentDisposition
- Content disposition specified for the file.contentLanguage
- Content language specified for the file.cacheControl
- Cache control specified for the file.leaseStatus
- Status of the lease on the file.leaseState
- State of the lease on the file.leaseDuration
- Type of lease on the file.copyId
- Identifier of the last copy operation performed on the file.copyStatus
- Status of the last copy operation performed on the file.copySource
- Source of the last copy operation performed on the file.copyProgress
- Progress of the last copy operation performed on the file.copyCompletionTime
- Datetime when the last copy operation on the file completed.copyStatusDescription
- Description of the last copy operation on the file.isServerEncrypted
- Flag indicating if the file's content is encrypted on the server.isIncrementalCopy
- Flag indicating if the file was incrementally copied.accessTier
- Access tier of the file.archiveStatus
- Archive status of the file.encryptionKeySha256
- SHA256 of the customer provided encryption key used to encrypt the file on the server.accessTierChangeTime
- Datetime when the access tier of the file last changed.metadata
- Metadata associated with the file. passnull
.expiresOn
- the time when the path is going to expire.
-
-
Method Details
-
getCreationTime
- Returns:
- the time when the path was created
-
getLastModified
- Returns:
- the time when the path was last modified
-
getETag
- Returns:
- the eTag of the path
-
getFileSize
public long getFileSize()- Returns:
- the size of the path in bytes
-
getContentType
- Returns:
- the content type of the path
-
getContentMd5
public byte[] getContentMd5()- Returns:
- the MD5 of the path's content
-
getContentEncoding
- Returns:
- the content encoding of the path
-
getContentDisposition
- Returns:
- the content disposition of the path
-
getContentLanguage
- Returns:
- the content language of the path
-
getCacheControl
- Returns:
- the cache control of the path
-
getLeaseStatus
- Returns:
- the lease status of the path
-
getLeaseState
- Returns:
- the lease state of the path
-
getLeaseDuration
- Returns:
- the lease duration if the path is leased
-
getCopyId
- Returns:
- the identifier of the last copy operation. If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
getCopyStatus
- Returns:
- the status of the last copy operation. If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
getCopySource
- Returns:
- the source path URL from the last copy operation. If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
getCopyProgress
- Returns:
- the number of bytes copied and total bytes in the source from the last copy operation (bytes copied/total bytes). If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
getCopyCompletionTime
- Returns:
- the completion time of the last copy operation. If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
getCopyStatusDescription
- Returns:
- the description of the last copy failure, this is set when the
getCopyStatus
isfailed
oraborted
. If this path hasn't been the target of a copy operation or has been modified since this won't be set.
-
isServerEncrypted
- Returns:
- the status of the path being encrypted on the server
-
isIncrementalCopy
- Returns:
- the status of the path being an incremental copy file
-
getAccessTier
- Returns:
- the tier of the path.
-
getArchiveStatus
- Returns:
- the archive status of the path.
-
getEncryptionKeySha256
- Returns:
- the key used to encrypt the path
-
getAccessTierChangeTime
- Returns:
- the time when the access tier for the path was last changed
-
getMetadata
- Returns:
- the metadata associated to this path
-
isDirectory
- Returns:
- whether or not this path represents a directory
-
getExpiresOn
- Returns:
- the time when the path is going to expire.
-
getEncryptionScope
- Returns:
- the path's encryption scope.
-