Class ShareFileProperties
java.lang.Object
com.azure.storage.file.share.models.ShareFileProperties
Contains property information about a File in the storage File service.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileProperties
(String eTag, OffsetDateTime lastModified, Map<String, String> metadata, String fileType, Long contentLength, String contentType, byte[] contentMd5, String contentEncoding, String cacheControl, String contentDisposition, LeaseStatusType leaseStatusType, LeaseStateType leaseStateType, LeaseDurationType leaseDurationType, OffsetDateTime copyCompletionTime, String copyStatusDescription, String copyId, String copyProgress, String copySource, CopyStatusType copyStatus, Boolean isServerEncrypted, FileSmbProperties smbProperties) Creates an instance of property information about a specific File.ShareFileProperties
(String eTag, OffsetDateTime lastModified, Map<String, String> metadata, String fileType, Long contentLength, String contentType, byte[] contentMd5, String contentEncoding, String cacheControl, String contentDisposition, OffsetDateTime copyCompletionTime, String copyStatusDescription, String copyId, String copyProgress, String copySource, CopyStatusType copyStatus, Boolean isServerEncrypted, FileSmbProperties smbProperties) Creates an instance of property information about a specific File. -
Method Summary
Modifier and TypeMethodDescriptionGets the value that was specified for the Content-Encoding request header.Gets the value that was specified for the x-ms-content-disposition header and specifies how to process the response.Gets the value that was specified for the Content-Encoding request header.Gets the number of bytes present in the response body.byte[]
Gets the MD5 hash of the file.Gets the content type specified for the file.Gets the conclusion time of the last attempted Copy File operation where this file was the destination file.Gets the string identifier for the last attempted Copy File operation where this file was the destination file.Gets the number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file.Gets the source file used in the last attempted Copy File operation where this file was the destination file.Gets the state of the copy operation identified by x-ms-copy-id.Gets the cause of fatal or non-fatal copy operation failure.getETag()
Gets the entity tag that corresponds to the directory.Gets the type of the file.Gets the last time the directory was modified.Gets the lease duration if the file is leased.Gets the lease state of the file.Gets the lease status of the file.Gets a set of name-value pairs associated with this file as user-defined metadata.Gets the file's NFS properties.Gets the SMB properties of the file.Gets whether the file data and application metadata are completely encrypted using the specified algorithm.
-
Constructor Details
-
Method Details
-
getETag
Gets the entity tag that corresponds to the directory.- Returns:
- Entity tag that corresponds to the directory.
-
getLastModified
Gets the last time the directory was modified.- Returns:
- Last time the directory was modified.
-
getMetadata
Gets a set of name-value pairs associated with this file as user-defined metadata.- Returns:
- A set of name-value pairs associated with this file as user-defined metadata.
-
getContentLength
Gets the number of bytes present in the response body.- Returns:
- The number of bytes present in the response body.
-
getFileType
Gets the type of the file.- Returns:
- The type of the file.
-
getContentType
Gets the content type specified for the file. The default content type is application/octet-stream.- Returns:
- The content type specified for the file. The default content type is application/octet-stream.
-
getContentMd5
public byte[] getContentMd5()Gets the MD5 hash of the file.- Returns:
- The MD5 hash of the file.
-
getContentEncoding
Gets the value that was specified for the Content-Encoding request header.- Returns:
- The value that was specified for the Content-Encoding request header.
-
getCacheControl
Gets the value that was specified for the Content-Encoding request header.- Returns:
- This header is returned if it was previously specified for the file.
-
getContentDisposition
Gets the value that was specified for the x-ms-content-disposition header and specifies how to process the response.- Returns:
- The value that was specified for the x-ms-content-disposition header and specifies how to process the response.
-
getLeaseStatus
Gets the lease status of the file.- Returns:
- the lease status of the file
-
getLeaseState
Gets the lease state of the file.- Returns:
- the lease state of the file
-
getLeaseDuration
Gets the lease duration if the file is leased.- Returns:
- the lease duration if the file is leased
-
getCopyCompletionTime
Gets the conclusion time of the last attempted Copy File operation where this file was the destination file.- Returns:
- Conclusion time of the last attempted Copy File operation where this file was the destination file.
-
getCopyStatusDescription
Gets the cause of fatal or non-fatal copy operation failure.- Returns:
- When x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.
-
getCopyId
Gets the string identifier for the last attempted Copy File operation where this file was the destination file.- Returns:
- String identifier for the last attempted Copy File operation where this file was the destination file.
-
getCopyProgress
Gets the number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file.- Returns:
- The number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file.
-
getCopySource
Gets the source file used in the last attempted Copy File operation where this file was the destination file.- Returns:
- URL up to 2KB in length that specifies the source file used in the last attempted Copy File operation where this file was the destination file.
-
getCopyStatus
Gets the state of the copy operation identified by x-ms-copy-id.- Returns:
- State of the copy operation identified by x-ms-copy-id, with these values: - success: Copy completed successfully. - pending: Copy is in progress. Check x-ms-copy-status-description if intermittent, non-fatal errors impede copy progress but don't cause failure. - aborted: Copy was ended by Abort Copy File. - failed: Copy failed. See x-ms-copy-status-description for failure details.
-
isServerEncrypted
Gets whether the file data and application metadata are completely encrypted using the specified algorithm.- Returns:
- True if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, return false.
-
getSmbProperties
Gets the SMB properties of the file.- Returns:
- The SMB properties of the file.
-
getPosixProperties
Gets the file's NFS properties. Only applicable to files in a NFS share.- Returns:
- The NFS Properties of the file.
-