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 Details

    • BatchTaskDependencies

      public BatchTaskDependencies()
      Creates an instance of BatchTaskDependencies class.
  • Method Details

    • getTaskIds

      public List<String> 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

      public BatchTaskDependencies setTaskIds(List<String> taskIds)
      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

      public List<BatchTaskIdRange> 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

      public BatchTaskDependencies setTaskIdRanges(List<BatchTaskIdRange> taskIdRanges)
      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

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