Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionBatchTaskGroup
(List<BatchTaskCreateContent> value) Creates an instance of BatchTaskGroup class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskGroup
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskGroup from the JsonReader.getValue()
Get the value property: The collection of Tasks to add.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
-
Constructor Details
-
BatchTaskGroup
Creates an instance of BatchTaskGroup class.- Parameters:
value
- the value value to set.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchTaskGroup>
- Throws:
IOException
-
fromJson
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.
-