Share via


ExitCodeRangeMapping Class

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

Implements

public final class ExitCodeRangeMapping
implements JsonSerializable<ExitCodeRangeMapping>

A range of exit codes and how the Batch service should respond to exit codes within that range.

Constructor Summary

Constructor Description
ExitCodeRangeMapping(int start, int end, ExitOptions exitOptions)

Creates an instance of ExitCodeRangeMapping class.

Method Summary

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

Reads an instance of ExitCodeRangeMapping from the JsonReader.

int getEnd()

Get the end property: The last exit code in the range.

ExitOptions getExitOptions()

Get the exitOptions property: How the Batch service should respond if the Task exits with an exit code in the range start to end (inclusive).

int getStart()

Get the start property: The first exit code in the range.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ExitCodeRangeMapping

public ExitCodeRangeMapping(int start, int end, ExitOptions exitOptions)

Creates an instance of ExitCodeRangeMapping class.

Parameters:

start - the start value to set.
end - the end value to set.
exitOptions - the exitOptions value to set.

Method Details

fromJson

public static ExitCodeRangeMapping fromJson(JsonReader jsonReader)

Reads an instance of ExitCodeRangeMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExitCodeRangeMapping 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 exit code in the range.

Returns:

the end value.

getExitOptions

public ExitOptions getExitOptions()

Get the exitOptions property: How the Batch service should respond if the Task exits with an exit code in the range start to end (inclusive).

Returns:

the exitOptions value.

getStart

public int getStart()

Get the start property: The first exit code in the range.

Returns:

the start value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to