Class AzureOpenAIOperationState

java.lang.Object
com.azure.core.util.ExpandableStringEnum<AzureOpenAIOperationState>
com.azure.ai.openai.models.AzureOpenAIOperationState

public final class AzureOpenAIOperationState extends com.azure.core.util.ExpandableStringEnum<AzureOpenAIOperationState>
The state of a job or item.
  • Field Details

    • NOT_RUNNING

      public static final AzureOpenAIOperationState NOT_RUNNING
      The operation was created and is queued to be processed in the future.
    • RUNNING

      public static final AzureOpenAIOperationState RUNNING
      The operation has started to be processed.
    • SUCCEEDED

      public static final AzureOpenAIOperationState SUCCEEDED
      The operation has successfully be processed and is ready for consumption.
    • CANCELED

      public static final AzureOpenAIOperationState CANCELED
      The operation has been canceled and is incomplete.
    • FAILED

      public static final AzureOpenAIOperationState FAILED
      The operation has completed processing with a failure and cannot be further consumed.
    • DELETED

      public static final AzureOpenAIOperationState DELETED
      The entity has been deleted but may still be referenced by other entities that originated before the deletion. Note that this state is not used by some Azure OpenAI long-running operations and may not represent a terminal state for those operations.
  • Constructor Details

    • AzureOpenAIOperationState

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

    • fromString

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

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