Package com.azure.compute.batch.models
Class BatchTaskCountsResult
java.lang.Object
com.azure.compute.batch.models.BatchTaskCountsResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskCountsResult>
public final class BatchTaskCountsResult
extends Object
implements com.azure.json.JsonSerializable<BatchTaskCountsResult>
The Task and TaskSlot counts for a Job.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskCountsResult
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskCountsResult from the JsonReader.Get the taskCounts property: The number of Tasks per state.Get the taskSlotCounts property: The number of TaskSlots required by Tasks per state.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
-
getTaskCounts
Get the taskCounts property: The number of Tasks per state.- Returns:
- the taskCounts value.
-
getTaskSlotCounts
Get the taskSlotCounts property: The number of TaskSlots required by Tasks per state.- Returns:
- the taskSlotCounts value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchTaskCountsResult>
- Throws:
IOException
-
fromJson
public static BatchTaskCountsResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchTaskCountsResult from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchTaskCountsResult 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 BatchTaskCountsResult.
-