Class FileMetadata
java.lang.Object
com.azure.resourcemanager.securityinsights.models.FileMetadata
Represents a file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deleteStatus property: Indicates whether the file was deleted from the storage account.Get the fileContentUri property: A URI with a valid SAS token to allow uploading / downloading the file.Get the fileFormat property: The format of the file.fileName()
Get the fileName property: The name of the file.fileSize()
Get the fileSize property: The size of the file.void
validate()
Validates the instance.withFileFormat
(FileFormat fileFormat) Set the fileFormat property: The format of the file.withFileName
(String fileName) Set the fileName property: The name of the file.withFileSize
(Integer fileSize) Set the fileSize property: The size of the file.
-
Constructor Details
-
FileMetadata
public FileMetadata()
-
-
Method Details
-
fileFormat
Get the fileFormat property: The format of the file.- Returns:
- the fileFormat value.
-
withFileFormat
Set the fileFormat property: The format of the file.- Parameters:
fileFormat
- the fileFormat value to set.- Returns:
- the FileMetadata object itself.
-
fileName
Get the fileName property: The name of the file.- Returns:
- the fileName value.
-
withFileName
Set the fileName property: The name of the file.- Parameters:
fileName
- the fileName value to set.- Returns:
- the FileMetadata object itself.
-
fileSize
Get the fileSize property: The size of the file.- Returns:
- the fileSize value.
-
withFileSize
Set the fileSize property: The size of the file.- Parameters:
fileSize
- the fileSize value to set.- Returns:
- the FileMetadata object itself.
-
fileContentUri
Get the fileContentUri property: A URI with a valid SAS token to allow uploading / downloading the file.- Returns:
- the fileContentUri value.
-
deleteStatus
Get the deleteStatus property: Indicates whether the file was deleted from the storage account.- Returns:
- the deleteStatus value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-