Partager via


DocumentIntelligenceWarning Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.DocumentIntelligenceWarning

Implements

public final class DocumentIntelligenceWarning
implements JsonSerializable<DocumentIntelligenceWarning>

The error object.

Method Summary

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

Reads an instance of DocumentIntelligenceWarning from the JsonReader.

String getCode()

Get the code property: One of a server-defined set of warning codes.

String getMessage()

Get the message property: A human-readable representation of the warning.

String getTarget()

Get the target property: The target of the error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentIntelligenceWarning fromJson(JsonReader jsonReader)

Reads an instance of DocumentIntelligenceWarning from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentIntelligenceWarning 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.

getCode

public String getCode()

Get the code property: One of a server-defined set of warning codes.

Returns:

the code value.

getMessage

public String getMessage()

Get the message property: A human-readable representation of the warning.

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The target of the error.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to