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 |
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 |
getEtag()
Gets the ETag value for the file.
|
Date |
getLastModified()
Gets the last modified time for the file.
|
long |
getLength()
Gets the size, in bytes, of the file.
|
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.
|
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 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.Copyright © 2018. All Rights Reserved.