Class BatchTaskGroup

java.lang.Object
com.azure.compute.batch.models.BatchTaskGroup
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskGroup>

public final class BatchTaskGroup extends Object implements com.azure.json.JsonSerializable<BatchTaskGroup>
A collection of Azure Batch Tasks to add.
  • Constructor Details

    • BatchTaskGroup

      public BatchTaskGroup(List<BatchTaskCreateContent> value)
      Creates an instance of BatchTaskGroup class.
      Parameters:
      value - the value value to set.
  • Method Details

    • getValue

      public List<BatchTaskCreateContent> getValue()
      Get the value property: The collection of Tasks to add. The maximum count of Tasks is 100. The total serialized size of this collection must be less than 1MB. If it is greater than 1MB (for example if each Task has 100's of resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer Tasks.
      Returns:
      the value value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchTaskGroup>
      Throws:
      IOException
    • fromJson

      public static BatchTaskGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchTaskGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchTaskGroup 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 BatchTaskGroup.