Partilhar via


ShareFileInfo Class

  • java.lang.Object
    • com.azure.storage.file.share.models.ShareFileInfo

public final class ShareFileInfo

Contains information about a File in the storage File service.

Constructor Summary

Constructor Description
ShareFileInfo(String eTag, OffsetDateTime lastModified, Boolean isServerEncrypted, FileSmbProperties smbProperties)

Creates an instance of information about a specific Directory.

Method Summary

Modifier and Type Method and Description
String getETag()

Gets the entity tag that corresponds to the file.

OffsetDateTime getLastModified()

Gets the last time the file was modified.

FileSmbProperties getSmbProperties()

Gets the SMB Properties of the file.

Boolean isServerEncrypted()

The value of this header is true if the file metadata is completely encrypted using the specified algorithm.

Methods inherited from java.lang.Object

Constructor Details

ShareFileInfo

public ShareFileInfo(String eTag, OffsetDateTime lastModified, Boolean isServerEncrypted, FileSmbProperties smbProperties)

Creates an instance of information about a specific Directory.

Parameters:

eTag - Entity tag that corresponds to the directory.
lastModified - Last time the directory was modified.
isServerEncrypted - The value of this header is set to true if the directory metadata is completely encrypted using the specified algorithm. Otherwise, the value is set to false.
smbProperties - The SMB properties of the file.

Method Details

getETag

public String getETag()

Gets the entity tag that corresponds to the file.

Returns:

The entity tag that corresponds to the file.

getLastModified

public OffsetDateTime getLastModified()

Gets the last time the file was modified.

Returns:

The last time the file was modified.

getSmbProperties

public FileSmbProperties getSmbProperties()

Gets the SMB Properties of the file.

Returns:

The SMB Properties of the file.

isServerEncrypted

public Boolean isServerEncrypted()

The value of this header is true if the file metadata is completely encrypted using the specified algorithm. Otherwise, the value is false.

Returns:

The value of this header is true if the file metadata is completely encrypted using the specified algorithm. Otherwise, the value is false.

Applies to