FileDirectoryProperties Class

  • java.lang.Object
    • com.microsoft.azure.storage.file.FileDirectoryProperties

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<NtfsAttributes> 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:

A String object which represents the change time.

getCreationTime

public String getCreationTime()

Gets the creation time for the directory.

Returns:

A 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:

A String which represents the ETag.

getFileId

public String getFileId()

Gets the directory's id.

Returns:

A String which specifies the directory's id.

getFilePermissionKey

public String getFilePermissionKey()

Gets the directory's permission key.

Returns:

A String which specifies the directory's permission key.

getLastModified

public Date getLastModified()

Gets the last modified time on the directory.

Returns:

A java.util.Date object which represents the last modified time.

getLastWriteTime

public String getLastWriteTime()

Gets the last write time for the directory.

Returns:

A String object which represents the last write time.

getNtfsAttributes

public EnumSet getNtfsAttributes()

Gets the file system attributes for files and directories. If not set, indicates preservation of existing values.

Returns:

A NtfsAttributes object which represents the file system attributes.

getParentId

public String getParentId()

Gets the directory's parent id.

Returns:

A String which specifies the directory's parent id.

isServerEncrypted

public boolean isServerEncrypted()

Gets the directory's server-side encryption status.

Returns:

A boolean which specifies the directory's encryption status.

setChangeTime

protected void setChangeTime(String changeTime)

Sets the change time for the directory.

Parameters:

changeTime - A String object which specifies the change time to set.

setCreationTime

public void setCreationTime(String creationTime)

Sets the creation time for the directory.

Parameters:

creationTime - A String object which specifies the creation time to set.

setEtag

protected void setEtag(final String etag)

Sets the ETag value on the directory.

Parameters:

etag - A String which represents the ETag to set.

setFileId

protected void setFileId(String fileId)

Sets the directory's id.

Parameters:

fileId - A String which specifies the id to set.

setFilePermissionKey

public void setFilePermissionKey(String filePermissionKey)

Sets the directory's permission key.

Parameters:

filePermissionKey - A 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:

lastModified - A 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:

lastWriteTime - A String object which specifies the last write time to set.

setNtfsAttributes

public void setNtfsAttributes(EnumSet ntfsAttributes)

Sets the file system attributes for files and directories. If not set, indicates preservation of existing values.

Parameters:

ntfsAttributes - A NtfsAttributes which specifies the file system attributes to set.

setParentId

protected void setParentId(String parentId)

Sets the directory's parent id.

Parameters:

parentId - A String which specifies the parent id to set.

setServerEncrypted

protected void setServerEncrypted(boolean serverEncrypted)

Sets the directory's server-side encryption status.

Parameters:

serverEncrypted - A boolean which specifies the encryption status to set.

Applies to