ExitCodeMapping Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.ExitCodeMapping

public class ExitCodeMapping

How the Batch service should respond if a task exits with a particular exit code.

Method Summary

Modifier and Type Method and Description
int code()

Get the code value.

ExitOptions exitOptions()

Get the exitOptions value.

ExitCodeMapping withCode(int code)

Set the code value.

ExitCodeMapping withExitOptions(ExitOptions exitOptions)

Set the exitOptions value.

Method Details

code

public int code()

Get the code value.

Returns:

the code value

exitOptions

public ExitOptions exitOptions()

Get the exitOptions value.

Returns:

the exitOptions value

withCode

public ExitCodeMapping withCode(int code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the ExitCodeMapping object itself.

withExitOptions

public ExitCodeMapping withExitOptions(ExitOptions exitOptions)

Set the exitOptions value.

Parameters:

exitOptions - the exitOptions value to set

Returns:

the ExitCodeMapping object itself.

Applies to