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
Modifier and TypeMethodDescriptionOptional.Gets the tier of the path.Gets the time when the access tier for the path was last changed.Gets the archive status of the path.Gets the cache control of the path.Gets the content disposition of the path.Gets the content encoding of the path.Gets the content language of the path.byte[]
Gets the MD5 of the path's content.Gets the content type of the path.Gets the completion time of the last copy operation.Gets the identifier of the last copy operation.Gets the number of bytes copied and total bytes in the source from the last copy operation.Gets the source path URL from the last copy operation.Gets the status of the last copy operation.Gets the description of the last copy failure.Gets the time when the path was created.Gets the encryption context for this path.Gets the SHA256 of the encryption key used to encrypt the path.Gets the path's encryption scope.getETag()
Gets the eTag of the path.Gets the time when the path is going to expire.long
Gets the size of the path in bytes.getGroup()
Get the group property of the path: The owner property.Gets the time when the path was last modified.Gets the lease duration if the path is leased.Gets the lease state of the path.Gets the lease status of the path.Gets the metadata associated to this path.getOwner()
Get the owner property of the path: The owner property.Get the permissions property of the path: The permissions property.Gets whether this path represents a directory.Gets the status of the path being an incremental copy file.Gets the status of the path being encrypted on the server.
-
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
Gets the time when the path was created.- Returns:
- the time when the path was created
-
getLastModified
Gets the time when the path was last modified.- Returns:
- the time when the path was last modified
-
getETag
Gets the eTag of the path.- Returns:
- the eTag of the path
-
getFileSize
public long getFileSize()Gets the size of the path in bytes.- Returns:
- the size of the path in bytes
-
getContentType
Gets the content type of the path.- Returns:
- the content type of the path
-
getContentMd5
public byte[] getContentMd5()Gets the MD5 of the path's content.- Returns:
- the MD5 of the path's content
-
getContentEncoding
Gets the content encoding of the path.- Returns:
- the content encoding of the path
-
getContentDisposition
Gets the content disposition of the path.- Returns:
- the content disposition of the path
-
getContentLanguage
Gets the content language of the path.- Returns:
- the content language of the path
-
getCacheControl
Gets the cache control of the path.- Returns:
- the cache control of the path
-
getLeaseStatus
Gets the lease status of the path.- Returns:
- the lease status of the path
-
getLeaseState
Gets the lease state of the path.- Returns:
- the lease state of the path
-
getLeaseDuration
Gets the lease duration if the path is leased.- Returns:
- the lease duration if the path is leased
-
getCopyId
Gets the identifier of the last copy operation.- 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
Gets the status of the last copy operation.- 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
Gets the source path URL from the last copy operation.- 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
Gets the number of bytes copied and total bytes in the source from the last copy operation.- 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
Gets the completion time of the last copy operation.- 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
Gets the description of the last copy failure.- 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
Gets the status of the path being encrypted on the server.- Returns:
- the status of the path being encrypted on the server
-
isIncrementalCopy
Gets the status of the path being an incremental copy file.- Returns:
- the status of the path being an incremental copy file
-
getAccessTier
Gets the tier of the path.- Returns:
- the tier of the path.
-
getArchiveStatus
Gets the archive status of the path.- Returns:
- the archive status of the path.
-
getEncryptionKeySha256
Gets the SHA256 of the encryption key used to encrypt the path.- Returns:
- the key used to encrypt the path
-
getAccessTierChangeTime
Gets the time when the access tier for the path was last changed.- Returns:
- the time when the access tier for the path was last changed
-
getMetadata
Gets the metadata associated to this path.- Returns:
- the metadata associated to this path
-
isDirectory
Gets whether this path represents a directory.- Returns:
- whether this path represents a directory
-
getExpiresOn
Gets the time when the path is going to expire.- Returns:
- the time when the path is going to expire.
-
getEncryptionScope
Gets the path's encryption scope.- Returns:
- the path's encryption scope.
-
getEncryptionContext
Gets the encryption context for this path. Only applicable for files.- Returns:
- the encryption context for this path. Only applicable for files.
-
getOwner
Get the owner property of the path: The owner property.- Returns:
- the owner value.
-
getGroup
Get the group property of the path: The owner property.- Returns:
- the group value.
-
getPermissions
Get the permissions property of the path: The permissions property.- Returns:
- the permissions value.
-
getAccessControlList
Optional. The POSIX access control list for the file or directory.- Returns:
- the access control list.
-