Package com.azure.compute.batch.models
Class UploadBatchServiceLogsResult
java.lang.Object
com.azure.compute.batch.models.UploadBatchServiceLogsResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UploadBatchServiceLogsResult>
public final class UploadBatchServiceLogsResult
extends Object
implements com.azure.json.JsonSerializable<UploadBatchServiceLogsResult>
The result of uploading Batch service log files from a specific Compute Node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UploadBatchServiceLogsResult
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UploadBatchServiceLogsResult from the JsonReader.int
Get the numberOfFilesUploaded property: The number of log files which will be uploaded.Get the virtualDirectoryName property: The virtual directory within Azure Blob Storage container to which the Batch Service log file(s) will be uploaded.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
-
getVirtualDirectoryName
Get the virtualDirectoryName property: The virtual directory within Azure Blob Storage container to which the Batch Service log file(s) will be uploaded. The virtual directory name is part of the blob name for each log file uploaded, and it is built based poolId, nodeId and a unique identifier.- Returns:
- the virtualDirectoryName value.
-
getNumberOfFilesUploaded
public int getNumberOfFilesUploaded()Get the numberOfFilesUploaded property: The number of log files which will be uploaded.- Returns:
- the numberOfFilesUploaded value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UploadBatchServiceLogsResult>
- Throws:
IOException
-
fromJson
public static UploadBatchServiceLogsResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UploadBatchServiceLogsResult from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UploadBatchServiceLogsResult 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 UploadBatchServiceLogsResult.
-