public final class FileProperties extends Object
| Constructor and Description |
|---|
FileProperties()
Creates an instance of the
FileProperties class. |
FileProperties(FileProperties other)
Creates an instance of the
FileProperties class by copying values from another instance of the
FileProperties class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheControl()
Gets the cache control value for the file.
|
String |
getChangeTime()
Gets the change time for the file.
|
String |
getContentDisposition()
Gets the content disposition value for the file.
|
String |
getContentEncoding()
Gets the content encoding value for the file.
|
String |
getContentLanguage()
Gets the content language value for the file.
|
String |
getContentMD5()
Gets the content MD5 value for the file.
|
String |
getContentType()
Gets the content type value for the file.
|
CopyState |
getCopyState()
Gets the file's copy state.
|
String |
getCreationTime()
Gets the creation time for the file.
|
String |
getEtag()
Gets the ETag value for the file.
|
String |
getFileId()
Gets the file's id.
|
String |
getFilePermissionKey()
Gets the file's permission key.
|
Date |
getLastModified()
Gets the last modified time for the file.
|
String |
getLastWriteTime()
Gets the last write time for the file.
|
long |
getLength()
Gets the size, in bytes, of the file.
|
EnumSet<NtfsAttributes> |
getNtfsAttributes()
Gets the file system attributes for files and directories.
|
String |
getParentId()
Gets the file's parent id.
|
boolean |
isServerEncrypted()
Gets the file's server-side encryption status.
|
void |
setCacheControl(String cacheControl)
Sets the cache control value for the file.
|
void |
setContentDisposition(String contentDisposition)
Sets the content disposition value for the file.
|
void |
setContentEncoding(String contentEncoding)
Sets the content encoding value for the file.
|
void |
setContentLanguage(String contentLanguage)
Sets the content language for the file.
|
void |
setContentMD5(String contentMD5)
Sets the content MD5 value for the file.
|
void |
setContentType(String contentType)
Sets the content type value for the file.
|
void |
setCreationTime(String creationTime)
Sets the creation time to set for the file.
|
void |
setFilePermissionKey(String filePermissionKey)
Sets the file's permission key.
|
void |
setNtfsAttributes(EnumSet<NtfsAttributes> ntfsAttributes)
Sets the file system attributes for files and directories.
|
public FileProperties()
FileProperties class.public FileProperties(FileProperties other)
FileProperties class by copying values from another instance of the
FileProperties class.other - A FileProperties object which represents the file properties to copy.public String getCacheControl()
String which represents the content cache control value for the file.public String getContentDisposition()
String which represents the content disposition, or null if content
disposition has not been set on the file.public String getContentEncoding()
String which represents the content encoding, or null if content encoding has
not been set on the file.public String getContentLanguage()
String which represents the content language, or null if content language
has not been set on the file.public String getContentMD5()
String which represents the content MD5 value.public String getContentType()
String which represents the content type, or null if the content type has not
be set for the file.public CopyState getCopyState()
CopyState object which represents the copy state of the file.public String getEtag()
The ETag value is a unique identifier that is updated when a write operation is performed against the file. It may be used to perform operations conditionally, providing concurrency control and improved efficiency.
The AccessCondition.generateIfMatchCondition(String) and
AccessCondition.generateIfNoneMatchCondition(String) methods take an ETag value and return an
AccessCondition object that may be specified on the request.
String which represents the ETag value.public Date getLastModified()
Date object which represents the last modified time.public long getLength()
long which represents the length of the file.public boolean isServerEncrypted()
boolean which specifies the file's encryption status.public String getFilePermissionKey()
String which specifies the file's permission key.public EnumSet<NtfsAttributes> getNtfsAttributes()
NtfsAttributes object which represents the file system attributes.public String getCreationTime()
String object which represents the creation time.public String getLastWriteTime()
String object which represents the last write time.public String getChangeTime()
String object which represents the change time.public String getFileId()
String which specifies the file's id.public String getParentId()
String which specifies the file's parent id.public void setCacheControl(String cacheControl)
cacheControl - A String which specifies the cache control value to set.public void setContentDisposition(String contentDisposition)
contentDisposition - A String which specifies the content disposition value to set.public void setContentEncoding(String contentEncoding)
contentEncoding - A String which specifies the content encoding value to set.public void setContentLanguage(String contentLanguage)
contentLanguage - A String which specifies the content language value to set.public void setContentMD5(String contentMD5)
contentMD5 - A String which specifies the content MD5 value to set.public void setContentType(String contentType)
contentType - A String which specifies the content type value to set.public void setFilePermissionKey(String filePermissionKey)
filePermissionKey - A String which specifies the file permission key to set.public void setNtfsAttributes(EnumSet<NtfsAttributes> ntfsAttributes)
ntfsAttributes - A NtfsAttributes which specifies the file system attributes to set.public void setCreationTime(String creationTime)
creationTime - A String object which specifies the creation time to set.Copyright © 2021. All Rights Reserved.