Package com.azure.compute.batch.models
Class BatchJobAction
java.lang.Object
com.azure.core.util.ExpandableStringEnum<BatchJobAction>
com.azure.compute.batch.models.BatchJobAction
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
BatchJobAction enums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BatchJobAction
Disable the Job.static final BatchJobAction
Take no action.static final BatchJobAction
Terminate the Job. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchJobAction
fromString
(String name) Creates or finds a BatchJobAction from its string representation.static Collection
<BatchJobAction> values()
Gets known BatchJobAction values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
Take no action. -
DISABLE
Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue. -
TERMINATE
Terminate the Job. The terminationReason in the Job's executionInfo is set to "TaskFailed".
-
-
Constructor Details
-
BatchJobAction
Deprecated.Use thefromString(String)
factory method.Creates a new instance of BatchJobAction value.
-
-
Method Details
-
fromString
Creates or finds a BatchJobAction from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding BatchJobAction.
-
values
Gets known BatchJobAction values.- Returns:
- known BatchJobAction values.
-
fromString(String)
factory method.