Package com.azure.compute.batch.models
Class FileProperties
java.lang.Object
com.azure.compute.batch.models.FileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileProperties>
public final class FileProperties
extends Object
implements com.azure.json.JsonSerializable<FileProperties>
The properties of a file on a Compute Node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FileProperties from the JsonReader.longGet the contentLength property: The length of the file.Get the contentType property: The content type of the file.Get the creationTime property: The file creation time.Get the fileMode property: The file mode attribute in octal format.Get the lastModified property: The time at which the file was last modified.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCreationTime
Get the creationTime property: The file creation time. The creation time is not returned for files on Linux Compute Nodes.- Returns:
- the creationTime value.
-
getLastModified
Get the lastModified property: The time at which the file was last modified.- Returns:
- the lastModified value.
-
getContentLength
public long getContentLength()Get the contentLength property: The length of the file.- Returns:
- the contentLength value.
-
getContentType
Get the contentType property: The content type of the file.- Returns:
- the contentType value.
-
getFileMode
Get the fileMode property: The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.- Returns:
- the fileMode value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FileProperties>- Throws:
IOException
-
fromJson
Reads an instance of FileProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the FileProperties.
-