Share via


BatchJobActionKind Class

public final class BatchJobActionKind
extends ExpandableStringEnum<BatchJobActionKind>

BatchJobAction enums.

Field Summary

Modifier and Type Field and Description
static final BatchJobActionKind DISABLE

Disable the Job.

static final BatchJobActionKind NONE

Take no action.

static final BatchJobActionKind TERMINATE

Terminate the Job.

Constructor Summary

Constructor Description
BatchJobActionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BatchJobActionKind value.

Method Summary

Modifier and Type Method and Description
static BatchJobActionKind fromString(String name)

Creates or finds a BatchJobActionKind from its string representation.

static Collection<BatchJobActionKind> values()

Gets known BatchJobActionKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLE

public static final BatchJobActionKind DISABLE

Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue.

NONE

public static final BatchJobActionKind NONE

Take no action.

TERMINATE

public static final BatchJobActionKind TERMINATE

Terminate the Job. The terminationReason in the Job's executionInfo is set to "TaskFailed".

Constructor Details

BatchJobActionKind

@Deprecated
public BatchJobActionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BatchJobActionKind value.

Method Details

fromString

public static BatchJobActionKind fromString(String name)

Creates or finds a BatchJobActionKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding BatchJobActionKind.

values

public static Collection<BatchJobActionKind> values()

Gets known BatchJobActionKind values.

Returns:

known BatchJobActionKind values.

Applies to