Class BatchTaskIdRange

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

public final class BatchTaskIdRange extends Object implements com.azure.json.JsonSerializable<BatchTaskIdRange>
The start and end of the range are inclusive. For example, if a range has start 9 and end 12, then it represents Tasks '9', '10', '11' and '12'.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BatchTaskIdRange(int start, int end)
    Creates an instance of BatchTaskIdRange class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchTaskIdRange from the JsonReader.
    int
    Get the end property: The last Task ID in the range.
    int
    Get the start property: The first Task ID in the range.
    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

    • BatchTaskIdRange

      public BatchTaskIdRange(int start, int end)
      Creates an instance of BatchTaskIdRange class.
      Parameters:
      start - the start value to set.
      end - the end value to set.
  • Method Details

    • getStart

      public int getStart()
      Get the start property: The first Task ID in the range.
      Returns:
      the start value.
    • getEnd

      public int getEnd()
      Get the end property: The last Task ID in the range.
      Returns:
      the end value.
    • toJson

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

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