Package com.azure.compute.batch.models
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 Summary
Modifier and TypeMethodDescriptionstatic BatchNodeFile
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeFile from the JsonReader.getName()
Get the name property: The file path.Get the properties property: The file properties.getUrl()
Get the url property: The URL of the file.Get the isDirectory property: Whether the object represents a directory.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getName
Get the name property: The file path.- Returns:
- the name value.
-
getUrl
Get the url property: The URL of the file.- Returns:
- the url value.
-
isDirectory
Get the isDirectory property: Whether the object represents a directory.- Returns:
- the isDirectory value.
-
getProperties
Get the properties property: The file properties.- Returns:
- the properties value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchNodeFile>
- Throws:
IOException
-
fromJson
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.
-