ExitCodeRangeMapping Class
- java.
lang. Object - com.
azure. compute. batch. models. ExitCodeRangeMapping
- com.
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 Exit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Exit |
fromJson(JsonReader jsonReader)
Reads an instance of Exit |
| int |
getEnd()
Get the end property: The last exit code in the range. |
|
Exit |
getExitOptions()
Get the exit |
| int |
getStart()
Get the start property: The first exit code in the range. |
|
Json |
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:
Method Details
fromJson
public static ExitCodeRangeMapping fromJson(JsonReader jsonReader)
Reads an instance of ExitCodeRangeMapping from the JsonReader.
Parameters:
Returns:
Throws:
getEnd
public int getEnd()
Get the end property: The last exit code in the range.
Returns:
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:
getStart
public int getStart()
Get the start property: The first exit code in the range.
Returns: