Class BatchNodeFile

java.lang.Object
com.azure.compute.batch.models.BatchNodeFile
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodeFile>

public final class BatchNodeFile extends Object implements com.azure.json.JsonSerializable<BatchNodeFile>
Information about a file or directory on a Compute Node.
  • Method Details

    • getName

      public String getName()
      Get the name property: The file path.
      Returns:
      the name value.
    • getUrl

      public String getUrl()
      Get the url property: The URL of the file.
      Returns:
      the url value.
    • isDirectory

      public Boolean isDirectory()
      Get the isDirectory property: Whether the object represents a directory.
      Returns:
      the isDirectory value.
    • getProperties

      public FileProperties getProperties()
      Get the properties property: The file properties.
      Returns:
      the properties value.
    • toJson

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

      public static BatchNodeFile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchNodeFile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchNodeFile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the BatchNodeFile.