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 Details

    • getCreationTime

      public OffsetDateTime 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

      public OffsetDateTime 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

      public String getContentType()
      Get the contentType property: The content type of the file.
      Returns:
      the contentType value.
    • getFileMode

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FileProperties>
      Throws:
      IOException
    • fromJson

      public static FileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.