Package com.azure.compute.batch.models
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
ConstructorsConstructorDescriptionBatchTaskIdRange(int start, int end) Creates an instance of BatchTaskIdRange class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskIdRangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskIdRange from the JsonReader.intgetEnd()Get the end property: The last Task ID in the range.intgetStart()Get the start property: The first Task ID in the range.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchTaskIdRange>- Throws:
IOException
-
fromJson
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.
-