Package com.azure.ai.openai.models
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final AzureOpenAIOperationStateThe operation has been canceled and is incomplete.static final AzureOpenAIOperationStateThe entity has been deleted but may still be referenced by other entities that originated before the deletion.static final AzureOpenAIOperationStateThe operation has completed processing with a failure and cannot be further consumed.static final AzureOpenAIOperationStateThe operation was created and is queued to be processed in the future.static final AzureOpenAIOperationStateThe operation has started to be processed.static final AzureOpenAIOperationStateThe operation has successfully be processed and is ready for consumption. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureOpenAIOperationStatefromString(String name) Creates or finds a AzureOpenAIOperationState from its string representation.static Collection<AzureOpenAIOperationState>values()Gets known AzureOpenAIOperationState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
NOT_RUNNING
The operation was created and is queued to be processed in the future. -
RUNNING
The operation has started to be processed. -
SUCCEEDED
The operation has successfully be processed and is ready for consumption. -
CANCELED
The operation has been canceled and is incomplete. -
FAILED
The operation has completed processing with a failure and cannot be further consumed. -
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.Use thefromString(String)factory method.Creates a new instance of AzureOpenAIOperationState value.
-
-
Method Details
-
fromString
Creates or finds a AzureOpenAIOperationState from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding AzureOpenAIOperationState.
-
values
Gets known AzureOpenAIOperationState values.- Returns:
- known AzureOpenAIOperationState values.
-
fromString(String)factory method.