Share via


ContentAnalyzerOperationStatus Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.ContentAnalyzerOperationStatus

Implements

public final class ContentAnalyzerOperationStatus
implements JsonSerializable<ContentAnalyzerOperationStatus>

Provides status details for analyzer creation operations.

Method Summary

Modifier and Type Method and Description
static ContentAnalyzerOperationStatus fromJson(JsonReader jsonReader)

Reads an instance of ContentAnalyzerOperationStatus from the JsonReader.

ResponseError getError()

Get the error property: Error object that describes the error when status is "Failed".

String getId()

Get the id property: The unique ID of the operation.

ContentAnalyzer getResult()

Get the result property: The result of the operation.

OperationState getStatus()

Get the status property: The status of the operation.

UsageDetails getUsage()

Get the usage property: Usage details of the analyzer creation operation.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ContentAnalyzerOperationStatus fromJson(JsonReader jsonReader)

Reads an instance of ContentAnalyzerOperationStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentAnalyzerOperationStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getError

public ResponseError getError()

Get the error property: Error object that describes the error when status is "Failed".

Returns:

the error value.

getId

public String getId()

Get the id property: The unique ID of the operation.

Returns:

the id value.

getResult

public ContentAnalyzer getResult()

Get the result property: The result of the operation.

Returns:

the result value.

getStatus

public OperationState getStatus()

Get the status property: The status of the operation.

Returns:

the status value.

getUsage

public UsageDetails getUsage()

Get the usage property: Usage details of the analyzer creation operation.

Returns:

the usage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to