ShareFileProperties Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareFileProperties
- com.
public final class ShareFileProperties
Contains property information about a File in the storage File service.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCacheControl()
Gets the value that was specified for the Content-Encoding request header. |
String |
getContentDisposition()
Gets the value that was specified for the x-ms-content-disposition header and specifies how to process the response. |
String |
getContentEncoding()
Gets the value that was specified for the Content-Encoding request header. |
Long |
getContentLength()
Gets the number of bytes present in the response body. |
byte[] |
getContentMd5()
Gets the MD5 hash of the file. |
String |
getContentType()
Gets the content type specified for the file. |
Offset |
getCopyCompletionTime()
Gets the conclusion time of the last attempted Copy File operation where this file was the destination file. |
String |
getCopyId()
Gets the string identifier for the last attempted Copy File operation where this file was the destination file. |
String |
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. |
String |
getCopySource()
Gets the source file used in the last attempted Copy File operation where this file was the destination file. |
Copy |
getCopyStatus()
Gets the state of the copy operation identified by x-ms-copy-id. |
String |
getCopyStatusDescription()
Gets the cause of fatal or non-fatal copy operation failure. |
String |
getETag()
Gets the entity tag that corresponds to the directory. |
String |
getFileType()
Gets the type of the file. |
Offset |
getLastModified()
Gets the last time the directory was modified. |
Lease |
getLeaseDuration()
Gets the lease duration if the file is leased. |
Lease |
getLeaseState()
Gets the lease state of the file. |
Lease |
getLeaseStatus()
Gets the lease status of the file. |
Map<String,String> |
getMetadata()
Gets a set of name-value pairs associated with this file as user-defined metadata. |
File |
getSmbProperties()
Gets the SMB properties of the file. |
Boolean |
isServerEncrypted()
Gets whether the file data and application metadata are completely encrypted using the specified algorithm. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileProperties
public ShareFileProperties(String eTag, OffsetDateTime lastModified, Map
Creates an instance of property information about a specific File.
Parameters:
- 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.
ShareFileProperties
public ShareFileProperties(String eTag, OffsetDateTime lastModified, Map
Creates an instance of property information about a specific File.
Parameters:
- 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.
Method Details
getCacheControl
public String getCacheControl()
Gets the value that was specified for the Content-Encoding request header.
Returns:
getContentDisposition
public String getContentDisposition()
Gets the value that was specified for the x-ms-content-disposition header and specifies how to process the response.
Returns:
getContentEncoding
public String getContentEncoding()
Gets the value that was specified for the Content-Encoding request header.
Returns:
getContentLength
public Long getContentLength()
Gets the number of bytes present in the response body.
Returns:
getContentMd5
public byte[] getContentMd5()
Gets the MD5 hash of the file.
Returns:
getContentType
public String getContentType()
Gets the content type specified for the file. The default content type is application/octet-stream.
Returns:
getCopyCompletionTime
public OffsetDateTime getCopyCompletionTime()
Gets the conclusion time of the last attempted Copy File operation where this file was the destination file.
Returns:
getCopyId
public String getCopyId()
Gets the string identifier for the last attempted Copy File operation where this file was the destination file.
Returns:
getCopyProgress
public String 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:
getCopySource
public String getCopySource()
Gets the source file used in the last attempted Copy File operation where this file was the destination file.
Returns:
getCopyStatus
public CopyStatusType getCopyStatus()
Gets the state of the copy operation identified by x-ms-copy-id.
Returns:
getCopyStatusDescription
public String getCopyStatusDescription()
Gets the cause of fatal or non-fatal copy operation failure.
Returns:
getETag
public String getETag()
Gets the entity tag that corresponds to the directory.
Returns:
getFileType
public String getFileType()
Gets the type of the file.
Returns:
getLastModified
public OffsetDateTime getLastModified()
Gets the last time the directory was modified.
Returns:
getLeaseDuration
public LeaseDurationType getLeaseDuration()
Gets the lease duration if the file is leased.
Returns:
getLeaseState
public LeaseStateType getLeaseState()
Gets the lease state of the file.
Returns:
getLeaseStatus
public LeaseStatusType getLeaseStatus()
Gets the lease status of the file.
Returns:
getMetadata
public Map
Gets a set of name-value pairs associated with this file as user-defined metadata.
Returns:
getSmbProperties
public FileSmbProperties getSmbProperties()
Gets the SMB properties of the file.
Returns:
isServerEncrypted
public Boolean isServerEncrypted()
Gets whether the file data and application metadata are completely encrypted using the specified algorithm.
Returns:
Applies to
Azure SDK for Java