BatchTaskGroup Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskGroup

Implements

public final class BatchTaskGroup
implements JsonSerializable<BatchTaskGroup>

A collection of Azure Batch Tasks to add.

Constructor Summary

Constructor Description
BatchTaskGroup(List<BatchTaskCreateParameters> values)

Creates an instance of BatchTaskGroup class.

Method Summary

Modifier and Type Method and Description
static BatchTaskGroup fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskGroup from the JsonReader.

List<BatchTaskCreateParameters> getValues()

Get the values property: The collection of Tasks to add.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchTaskGroup

public BatchTaskGroup(List<BatchTaskCreateParameters> values)

Creates an instance of BatchTaskGroup class.

Parameters:

values - the values value to set.

Method Details

fromJson

public static BatchTaskGroup fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getValues

public List<BatchTaskCreateParameters> getValues()

Get the values 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 values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to