Package com.azure.compute.batch.models
Class BatchTaskDependencies
java.lang.Object
com.azure.compute.batch.models.BatchTaskDependencies
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskDependencies>
public final class BatchTaskDependencies
extends Object
implements com.azure.json.JsonSerializable<BatchTaskDependencies>
Specifies any dependencies of a Task. Any Task that is explicitly specified or
within a dependency range must complete before the dependant Task will be
scheduled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskDependencies
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskDependencies from the JsonReader.Get the taskIdRanges property: The list of Task ID ranges that this Task depends on.Get the taskIds property: The list of Task IDs that this Task depends on.setTaskIdRanges
(List<BatchTaskIdRange> taskIdRanges) Set the taskIdRanges property: The list of Task ID ranges that this Task depends on.setTaskIds
(List<String> taskIds) Set the taskIds property: The list of Task IDs that this Task depends on.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
-
BatchTaskDependencies
public BatchTaskDependencies()Creates an instance of BatchTaskDependencies class.
-
-
Method Details
-
getTaskIds
Get the taskIds property: The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.- Returns:
- the taskIds value.
-
setTaskIds
Set the taskIds property: The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.- Parameters:
taskIds
- the taskIds value to set.- Returns:
- the BatchTaskDependencies object itself.
-
getTaskIdRanges
Get the taskIdRanges property: The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.- Returns:
- the taskIdRanges value.
-
setTaskIdRanges
Set the taskIdRanges property: The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.- Parameters:
taskIdRanges
- the taskIdRanges value to set.- Returns:
- the BatchTaskDependencies object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchTaskDependencies>
- Throws:
IOException
-
fromJson
public static BatchTaskDependencies fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchTaskDependencies from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchTaskDependencies if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the BatchTaskDependencies.
-