FileDirectoryProperties Class
- java.
lang. Object - com.
microsoft. azure. storage. file. FileDirectoryProperties
- com.
public class FileDirectoryProperties
Represents the system properties for a directory.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getChangeTime()
Gets the change time for the directory. |
String |
getCreationTime()
Gets the creation time for the directory. |
String |
getEtag()
Gets the ETag value of the directory. The ETag value is a unique identifier that is updated when a write operation is performed against the directory. It may be used to perform operations conditionally, providing concurrency control and improved efficiency. The generateIfMatchCondition(final String etag) and generateIfNoneMatchCondition(final String etag) methods take an ETag value and return an AccessCondition object that may be specified on the request. |
String |
getFileId()
Gets the directory's id. |
String |
getFilePermissionKey()
Gets the directory's permission key. |
Date |
getLastModified()
Gets the last modified time on the directory. |
String |
getLastWriteTime()
Gets the last write time for the directory. |
EnumSet<Ntfs |
getNtfsAttributes()
Gets the file system attributes for files and directories. If not set, indicates preservation of existing values. |
String |
getParentId()
Gets the directory's parent id. |
boolean |
isServerEncrypted()
Gets the directory's server-side encryption status. |
void |
setChangeTime(String changeTime)
Sets the change time for the directory. |
void |
setCreationTime(String creationTime)
Sets the creation time for the directory. |
void |
setEtag(final String etag)
Sets the ETag value on the directory. |
void |
setFileId(String fileId)
Sets the directory's id. |
void |
setFilePermissionKey(String filePermissionKey)
Sets the directory's permission key. |
void |
setLastModified(final Date lastModified)
Sets the last modified time on the directory. |
void |
setLastWriteTime(String lastWriteTime)
Sets the last write time for the directory. |
void |
setNtfsAttributes(EnumSet<NtfsAttributes> ntfsAttributes)
Sets the file system attributes for files and directories. If not set, indicates preservation of existing values. |
void |
setParentId(String parentId)
Sets the directory's parent id. |
void |
setServerEncrypted(boolean serverEncrypted)
Sets the directory's server-side encryption status. |
Method Details
getChangeTime
public String getChangeTime()
Gets the change time for the directory.
Returns:
String
object which represents the change time.getCreationTime
public String getCreationTime()
Gets the creation time for the directory.
Returns:
String
object which represents the creation time.getEtag
public String getEtag()
Gets the ETag value of the directory.
The ETag value is a unique identifier that is updated when a write operation is performed against the directory. It may be used to perform operations conditionally, providing concurrency control and improved efficiency.
The generateIfMatchCondition(final String etag) and generateIfNoneMatchCondition(final String etag) methods take an ETag value and return an AccessCondition object that may be specified on the request.
Returns:
String
which represents the ETag.getFileId
public String getFileId()
Gets the directory's id.
Returns:
String
which specifies the directory's id.getFilePermissionKey
public String getFilePermissionKey()
Gets the directory's permission key.
Returns:
String
which specifies the directory's permission key.getLastModified
public Date getLastModified()
Gets the last modified time on the directory.
Returns:
java.util.Date
object which represents the last modified time.getLastWriteTime
public String getLastWriteTime()
Gets the last write time for the directory.
Returns:
String
object which represents the last write time.getNtfsAttributes
public EnumSet
Gets the file system attributes for files and directories. If not set, indicates preservation of existing values.
Returns:
getParentId
public String getParentId()
Gets the directory's parent id.
Returns:
String
which specifies the directory's parent id.isServerEncrypted
public boolean isServerEncrypted()
Gets the directory's server-side encryption status.
Returns:
boolean
which specifies the directory's encryption status.setChangeTime
protected void setChangeTime(String changeTime)
Sets the change time for the directory.
Parameters:
String
object which specifies the change time to set.
setCreationTime
public void setCreationTime(String creationTime)
Sets the creation time for the directory.
Parameters:
String
object which specifies the creation time to set.
setEtag
protected void setEtag(final String etag)
Sets the ETag value on the directory.
Parameters:
String
which represents the ETag to set.
setFileId
protected void setFileId(String fileId)
Sets the directory's id.
Parameters:
String
which specifies the id to set.
setFilePermissionKey
public void setFilePermissionKey(String filePermissionKey)
Sets the directory's permission key.
Parameters:
String
which specifies the directory permission key to set.
setLastModified
protected void setLastModified(final Date lastModified)
Sets the last modified time on the directory.
Parameters:
java.util.Date
object which represents the last modified time to set.
setLastWriteTime
public void setLastWriteTime(String lastWriteTime)
Sets the last write time for the directory.
Parameters:
String
object which specifies the last write time to set.
setNtfsAttributes
public void setNtfsAttributes(EnumSet
Sets the file system attributes for files and directories. If not set, indicates preservation of existing values.
Parameters:
setParentId
protected void setParentId(String parentId)
Sets the directory's parent id.
Parameters:
String
which specifies the parent id to set.
setServerEncrypted
protected void setServerEncrypted(boolean serverEncrypted)
Sets the directory's server-side encryption status.
Parameters:
boolean
which specifies the encryption status to set.
Applies to
Azure SDK for Java