Share via


BatchTaskIdRange Class

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

Implements

public final class BatchTaskIdRange
implements 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

Constructor Description
BatchTaskIdRange(int start, int end)

Creates an instance of BatchTaskIdRange class.

Method Summary

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

Reads an instance of BatchTaskIdRange from the JsonReader.

int getEnd()

Get the end property: The last Task ID in the range.

int getStart()

Get the start property: The first Task ID in the range.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

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

fromJson

public static BatchTaskIdRange fromJson(JsonReader jsonReader)

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:

IOException

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

getEnd

public int getEnd()

Get the end property: The last Task ID in the range.

Returns:

the end value.

getStart

public int getStart()

Get the start property: The first Task ID in the range.

Returns:

the start value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to