OperationState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. contentunderstanding. models. OperationState
- com.
- com.
public final class OperationState
extends ExpandableStringEnum<OperationState>
Enum describing allowed operation states.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Operation |
CANCELED
The operation has been canceled by the user. |
|
static final
Operation |
FAILED
The operation has failed. |
|
static final
Operation |
NOT_STARTED
The operation has not started. |
|
static final
Operation |
RUNNING
The operation is in progress. |
|
static final
Operation |
SUCCEEDED
The operation has completed successfully. |
Constructor Summary
| Constructor | Description |
|---|---|
| OperationState() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Operation |
fromString(String name)
Creates or finds a Operation |
|
static
Collection<Operation |
values()
Gets known Operation |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CANCELED
public static final OperationState CANCELED
The operation has been canceled by the user.
FAILED
public static final OperationState FAILED
The operation has failed.
NOT_STARTED
public static final OperationState NOT_STARTED
The operation has not started.
RUNNING
public static final OperationState RUNNING
The operation is in progress.
SUCCEEDED
public static final OperationState SUCCEEDED
The operation has completed successfully.
Constructor Details
OperationState
@Deprecated
public OperationState()
Deprecated
Creates a new instance of OperationState value.
Method Details
fromString
public static OperationState fromString(String name)
Creates or finds a OperationState from its string representation.
Parameters:
Returns:
values
public static Collection<OperationState> values()
Gets known OperationState values.
Returns: