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>

public final class BatchJobAction extends com.azure.core.util.ExpandableStringEnum<BatchJobAction>
BatchJobAction enums.
  • Field Details

    • NONE

      public static final BatchJobAction NONE
      Take no action.
    • DISABLE

      public static final BatchJobAction DISABLE
      Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue.
    • TERMINATE

      public static final BatchJobAction TERMINATE
      Terminate the Job. The terminationReason in the Job's executionInfo is set to "TaskFailed".
  • Constructor Details

    • BatchJobAction

      @Deprecated public BatchJobAction()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of BatchJobAction value.
  • Method Details

    • fromString

      public static BatchJobAction fromString(String name)
      Creates or finds a BatchJobAction from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding BatchJobAction.
    • values

      public static Collection<BatchJobAction> values()
      Gets known BatchJobAction values.
      Returns:
      known BatchJobAction values.