Class ShareFileItem
- java.lang.Object
-
- com.azure.storage.file.share.models.ShareFileItem
-
public final class ShareFileItem extends Object
Contains file or directory reference information in the storage File service.
-
-
Constructor Summary
Constructors Constructor Description ShareFileItem(String name, boolean isDirectory, Long fileSize)
Creates an instance of file or directory reference information about a specific Share.ShareFileItem(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet<NtfsFileAttributes> fileAttributes, String permissionKey, Long fileSize)
Creates an instance of file or directory reference information about a specific Share.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumSet<NtfsFileAttributes>
getFileAttributes()
Long
getFileSize()
String
getId()
String
getName()
String
getPermissionKey()
ShareFileItemProperties
getProperties()
boolean
isDirectory()
-
-
-
Constructor Detail
-
ShareFileItem
public ShareFileItem(String name, boolean isDirectory, Long fileSize)
Creates an instance of file or directory reference information about a specific Share.- Parameters:
name
- Name of the file or the directory.isDirectory
- A boolean set to true if the reference is a directory, false if the reference is a file.fileSize
- Size of a file. Passnull
if the reference is a directory.
-
ShareFileItem
public ShareFileItem(String name, boolean isDirectory, String id, ShareFileItemProperties properties, EnumSet<NtfsFileAttributes> fileAttributes, String permissionKey, Long fileSize)
Creates an instance of file or directory reference information about a specific Share.- Parameters:
name
- Name of the file or the directory.isDirectory
- A boolean set to true if the reference is a directory, false if the reference is a file.id
- ID of the file or directory.properties
- Properties of the file or directory.fileAttributes
- NTFS attributes of the file or directory.permissionKey
- Permission key of the file or directory.fileSize
- Size of a file. Passnull
if the reference is a directory.
-
-
Method Detail
-
getName
public String getName()
- Returns:
- Name of the file or the directory.
-
isDirectory
public boolean isDirectory()
- Returns:
- True if the reference is a directory, or false if the reference is a file.
-
getFileSize
public Long getFileSize()
- Returns:
- Size of a file,
null
if the reference is a directory.
-
getId
public String getId()
- Returns:
- ID of the file or directory.
-
getProperties
public ShareFileItemProperties getProperties()
- Returns:
- Properties of the file or directory.
-
getFileAttributes
public EnumSet<NtfsFileAttributes> getFileAttributes()
- Returns:
- NTFS attributes of the file or directory.
-
getPermissionKey
public String getPermissionKey()
- Returns:
- Permission key of the file or directory.
-
-