Share via


BatchNodeFile Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchNodeFile

Implements

public final class BatchNodeFile
implements JsonSerializable<BatchNodeFile>

Information about a file or directory on a Compute Node.

Method Summary

Modifier and Type Method and Description
static BatchNodeFile fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeFile from the JsonReader.

String getName()

Get the name property: The file path.

FileProperties getProperties()

Get the properties property: The file properties.

String getUrl()

Get the url property: The URL of the file.

Boolean isDirectory()

Get the isDirectory property: Whether the object represents a directory.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchNodeFile fromJson(JsonReader jsonReader)

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.

getName

public String getName()

Get the name property: The file path.

Returns:

the name value.

getProperties

public FileProperties getProperties()

Get the properties property: The file properties.

Returns:

the properties 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to