Class ShareFileDownloadHeaders
java.lang.Object
com.azure.storage.file.share.models.ShareFileDownloadHeaders
Defines headers for Download operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the acceptRanges property: Indicates that the service supports requests for partial file content.Get the cacheControl property: Returned if it was previously specified for the file.Get the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.Get the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.Get the contentLanguage property: Returns the value that was specified for the Content-Language request header.Get the contentLength property: The number of bytes present in the response body.byte[]
Get the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity.Get the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.Get the contentType property: The content type specified for the file.Get the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file.Get the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.Get the copyProgress property: Contains 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.Get the copySource property: 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.Get the copyStatus property: State of the copy operation identified by 'x-ms-copy-id'.Get the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending.Get the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.Get the errorCode property: The errorCode property.getETag()
Get the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.Get the fileAttributes property: Attributes set for the file.Get the fileChangeTime property: Change time for the file.byte[]
Get the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value.Get the fileCreationTime property: Creation time for the file.Get the fileId property: The fileId of the file.Get the fileLastWriteTime property: Last write time for the file.Get the fileParentId property: The parent fileId of the file.Get the filePermissionKey property: Key of the permission set for the file.Get the lastModified property: Returns the date and time the file was last modified.Get the leaseDuration property: When a file is leased, specifies whether the lease is of infinite or fixed duration.Get the leaseState property: Lease state of the file.Get the leaseStatus property: The current lease status of the file.Get the metadata property: The metadata property.Get the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.Get the version property: Indicates the version of the File service used to execute the request.Get the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm.setAcceptRanges
(String acceptRanges) Set the acceptRanges property: Indicates that the service supports requests for partial file content.setCacheControl
(String cacheControl) Set the cacheControl property: Returned if it was previously specified for the file.setContentDisposition
(String contentDisposition) Set the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.setContentEncoding
(String contentEncoding) Set the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.setContentLanguage
(String contentLanguage) Set the contentLanguage property: Returns the value that was specified for the Content-Language request header.setContentLength
(Long contentLength) Set the contentLength property: The number of bytes present in the response body.setContentMd5
(byte[] contentMd5) Set the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity.setContentRange
(String contentRange) Set the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.setContentType
(String contentType) Set the contentType property: The content type specified for the file.setCopyCompletionTime
(OffsetDateTime copyCompletionTime) Set the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file.Set the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.setCopyProgress
(String copyProgress) Set the copyProgress property: Contains 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.setCopySource
(String copySource) Set the copySource property: 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.setCopyStatus
(CopyStatusType copyStatus) Set the copyStatus property: State of the copy operation identified by 'x-ms-copy-id'.setCopyStatusDescription
(String copyStatusDescription) Set the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending.setDateProperty
(OffsetDateTime dateProperty) Set the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.setErrorCode
(String errorCode) Set the errorCode property: The errorCode property.Set the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.setFileAttributes
(String fileAttributes) Set the fileAttributes property: Attributes set for the file.setFileChangeTime
(OffsetDateTime fileChangeTime) Set the fileChangeTime property: Change time for the file.setFileContentMd5
(byte[] fileContentMd5) Set the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value.setFileCreationTime
(OffsetDateTime fileCreationTime) Set the fileCreationTime property: Creation time for the file.Set the fileId property: The fileId of the file.setFileLastWriteTime
(OffsetDateTime fileLastWriteTime) Set the fileLastWriteTime property: Last write time for the file.setFileParentId
(String fileParentId) Set the fileParentId property: The parent fileId of the file.setFilePermissionKey
(String filePermissionKey) Set the filePermissionKey property: Key of the permission set for the file.setIsServerEncrypted
(Boolean isServerEncrypted) Set the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm.setLastModified
(OffsetDateTime lastModified) Set the lastModified property: Returns the date and time the file was last modified.setLeaseDuration
(LeaseDurationType leaseDuration) Set the leaseDuration property: When a file is leased, specifies whether the lease is of infinite or fixed duration.setLeaseState
(LeaseStateType leaseState) Set the leaseState property: Lease state of the file.setLeaseStatus
(LeaseStatusType leaseStatus) Set the leaseStatus property: The current lease status of the file.setMetadata
(Map<String, String> metadata) Set the metadata property: The metadata property.setRequestId
(String requestId) Set the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.setVersion
(String version) Set the version property: Indicates the version of the File service used to execute the request.
-
Constructor Details
-
ShareFileDownloadHeaders
public ShareFileDownloadHeaders()
-
-
Method Details
-
getLastModified
Get the lastModified property: Returns the date and time the file was last modified. Any operation that modifies the file or its properties updates the last modified time.- Returns:
- the lastModified value.
-
setLastModified
Set the lastModified property: Returns the date and time the file was last modified. Any operation that modifies the file or its properties updates the last modified time.- Parameters:
lastModified
- the lastModified value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getMetadata
Get the metadata property: The metadata property.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: The metadata property.- Parameters:
metadata
- the metadata value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentLength
Get the contentLength property: The number of bytes present in the response body.- Returns:
- the contentLength value.
-
setContentLength
Set the contentLength property: The number of bytes present in the response body.- Parameters:
contentLength
- the contentLength value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentType
Get the contentType property: The content type specified for the file. The default content type is 'application/octet-stream'.- Returns:
- the contentType value.
-
setContentType
Set the contentType property: The content type specified for the file. The default content type is 'application/octet-stream'.- Parameters:
contentType
- the contentType value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentRange
Get the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.- Returns:
- the contentRange value.
-
setContentRange
Set the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.- Parameters:
contentRange
- the contentRange value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getETag
Get the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.- Returns:
- the eTag value.
-
setETag
Set the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.- Parameters:
eTag
- the eTag value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentMd5
public byte[] getContentMd5()Get the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity. If the request is to read a specified range and the 'x-ms-range-get-content-md5' is set to true, then the request returns an MD5 hash for the range, as long as the range size is less than or equal to 4 MB. If neither of these sets of conditions is true, then no value is returned for the 'Content-MD5' header.- Returns:
- the contentMd5 value.
-
setContentMd5
Set the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity. If the request is to read a specified range and the 'x-ms-range-get-content-md5' is set to true, then the request returns an MD5 hash for the range, as long as the range size is less than or equal to 4 MB. If neither of these sets of conditions is true, then no value is returned for the 'Content-MD5' header.- Parameters:
contentMd5
- the contentMd5 value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentEncoding
Get the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.- Returns:
- the contentEncoding value.
-
setContentEncoding
Set the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.- Parameters:
contentEncoding
- the contentEncoding value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCacheControl
Get the cacheControl property: Returned if it was previously specified for the file.- Returns:
- the cacheControl value.
-
setCacheControl
Set the cacheControl property: Returned if it was previously specified for the file.- Parameters:
cacheControl
- the cacheControl value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentDisposition
Get the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.- Returns:
- the contentDisposition value.
-
setContentDisposition
Set the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.- Parameters:
contentDisposition
- the contentDisposition value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getContentLanguage
Get the contentLanguage property: Returns the value that was specified for the Content-Language request header.- Returns:
- the contentLanguage value.
-
setContentLanguage
Set the contentLanguage property: Returns the value that was specified for the Content-Language request header.- Parameters:
contentLanguage
- the contentLanguage value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getRequestId
Get the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.- Returns:
- the requestId value.
-
setRequestId
Set the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.- Parameters:
requestId
- the requestId value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getVersion
Get the version property: Indicates the version of the File service used to execute the request.- Returns:
- the version value.
-
setVersion
Set the version property: Indicates the version of the File service used to execute the request.- Parameters:
version
- the version value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getAcceptRanges
Get the acceptRanges property: Indicates that the service supports requests for partial file content.- Returns:
- the acceptRanges value.
-
setAcceptRanges
Set the acceptRanges property: Indicates that the service supports requests for partial file content.- Parameters:
acceptRanges
- the acceptRanges value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getDateProperty
Get the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.- Returns:
- the dateProperty value.
-
setDateProperty
Set the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.- Parameters:
dateProperty
- the dateProperty value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopyCompletionTime
Get the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file. This value can specify the time of a completed, aborted, or failed copy attempt.- Returns:
- the copyCompletionTime value.
-
setCopyCompletionTime
Set the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file. This value can specify the time of a completed, aborted, or failed copy attempt.- Parameters:
copyCompletionTime
- the copyCompletionTime value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopyStatusDescription
Get the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.- Returns:
- the copyStatusDescription value.
-
setCopyStatusDescription
Set the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.- Parameters:
copyStatusDescription
- the copyStatusDescription value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopyId
Get the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.- Returns:
- the copyId value.
-
setCopyId
Set the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.- Parameters:
copyId
- the copyId value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopyProgress
Get the copyProgress property: Contains 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. Can show between 0 and Content-Length bytes copied.- Returns:
- the copyProgress value.
-
setCopyProgress
Set the copyProgress property: Contains 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. Can show between 0 and Content-Length bytes copied.- Parameters:
copyProgress
- the copyProgress value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopySource
Get the copySource property: 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.- Returns:
- the copySource value.
-
setCopySource
Set the copySource property: 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.- Parameters:
copySource
- the copySource value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getCopyStatus
Get the copyStatus property: State of the copy operation identified by 'x-ms-copy-id'. Possible values include: 'pending', 'success', 'aborted', 'failed'.- Returns:
- the copyStatus value.
-
getFileContentMd5
public byte[] getFileContentMd5()Get the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range.- Returns:
- the fileContentMd5 value.
-
setFileContentMd5
Set the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range.- Parameters:
fileContentMd5
- the fileContentMd5 value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
isServerEncrypted
Get the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted).- Returns:
- the isServerEncrypted value.
-
setIsServerEncrypted
Set the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted).- Parameters:
isServerEncrypted
- the isServerEncrypted value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileAttributes
Get the fileAttributes property: Attributes set for the file.- Returns:
- the fileAttributes value.
-
setFileAttributes
Set the fileAttributes property: Attributes set for the file.- Parameters:
fileAttributes
- the fileAttributes value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileCreationTime
Get the fileCreationTime property: Creation time for the file.- Returns:
- the fileCreationTime value.
-
setFileCreationTime
Set the fileCreationTime property: Creation time for the file.- Parameters:
fileCreationTime
- the fileCreationTime value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileLastWriteTime
Get the fileLastWriteTime property: Last write time for the file.- Returns:
- the fileLastWriteTime value.
-
setFileLastWriteTime
Set the fileLastWriteTime property: Last write time for the file.- Parameters:
fileLastWriteTime
- the fileLastWriteTime value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileChangeTime
Get the fileChangeTime property: Change time for the file.- Returns:
- the fileChangeTime value.
-
setFileChangeTime
Set the fileChangeTime property: Change time for the file.- Parameters:
fileChangeTime
- the fileChangeTime value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFilePermissionKey
Get the filePermissionKey property: Key of the permission set for the file.- Returns:
- the filePermissionKey value.
-
setFilePermissionKey
Set the filePermissionKey property: Key of the permission set for the file.- Parameters:
filePermissionKey
- the filePermissionKey value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileId
Get the fileId property: The fileId of the file.- Returns:
- the fileId value.
-
setFileId
Set the fileId property: The fileId of the file.- Parameters:
fileId
- the fileId value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getFileParentId
Get the fileParentId property: The parent fileId of the file.- Returns:
- the fileParentId value.
-
setFileParentId
Set the fileParentId property: The parent fileId of the file.- Parameters:
fileParentId
- the fileParentId value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-
getLeaseDuration
Get the leaseDuration property: When a file is leased, specifies whether the lease is of infinite or fixed duration. Possible values include: 'infinite', 'fixed'.- Returns:
- the leaseDuration value.
-
getLeaseState
Get the leaseState property: Lease state of the file. Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.- Returns:
- the leaseState value.
-
getLeaseStatus
Get the leaseStatus property: The current lease status of the file. Possible values include: 'locked', 'unlocked'.- Returns:
- the leaseStatus value.
-
getErrorCode
Get the errorCode property: The errorCode property.- Returns:
- the errorCode value.
-
setErrorCode
Set the errorCode property: The errorCode property.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the ShareFileDownloadHeaders object itself.
-