Package com.azure.ai.openai.models
Class State
java.lang.Object
com.azure.core.util.ExpandableStringEnum<State>
com.azure.ai.openai.models.State
The state of a job or item.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StateThe operation has been canceled and is incomplete.static final StateThe entity has been deleted but may still be referenced by other entities predating the deletion.static final StateThe operation has completed processing with a failure and cannot be further consumed.static final StateThe operation was created and is queued to be processed in the future.static final StateThe operation has started to be processed.static final StateThe operation has successfully be processed and is ready for consumption. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatefromString(String name) Creates or finds a State from its string representation.static Collection<State>values()Gets known State 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 predating the deletion.
-
-
Constructor Details
-
State
Deprecated.Use thefromString(String)factory method.Creates a new instance of State value.
-
-
Method Details
-
fromString
Creates or finds a State from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding State.
-
values
Gets known State values.- Returns:
- known State values.
-
fromString(String)factory method.