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 Details

    • getTaskCounts

      public BatchTaskCounts getTaskCounts()
      Get the taskCounts property: The number of Tasks per state.
      Returns:
      the taskCounts value.
    • getTaskSlotCounts

      public BatchTaskSlotCounts getTaskSlotCounts()
      Get the taskSlotCounts property: The number of TaskSlots required by Tasks per state.
      Returns:
      the taskSlotCounts value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.