Class TextAnalyticsWarning
- java.lang.Object
-
- com.azure.ai.textanalytics.models.TextAnalyticsWarning
-
public final class TextAnalyticsWarning extends Object
TheTextAnalyticsWarning
model.
-
-
Constructor Summary
Constructors Constructor Description TextAnalyticsWarning(WarningCode warningCode, String message)
Creates aTextAnalyticsWarning
model that describes text analytics warning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Get the message property: Warning message.WarningCode
getWarningCode()
Get the warning code property: warning code, such as 'LongWordsInDocument'.
-
-
-
Constructor Detail
-
TextAnalyticsWarning
public TextAnalyticsWarning(WarningCode warningCode, String message)
Creates aTextAnalyticsWarning
model that describes text analytics warning.- Parameters:
warningCode
- The warning code valuemessage
- The warning message.
-
-
Method Detail
-
getWarningCode
public WarningCode getWarningCode()
Get the warning code property: warning code, such as 'LongWordsInDocument'.- Returns:
- the warning code value.
-
getMessage
public String getMessage()
Get the message property: Warning message.- Returns:
- the message value.
-
-