ErrorBody Class
- java.
lang. Object - com.
microsoft. azure. management. cognitiveservices. ErrorBody
- com.
public class ErrorBody
Cognitive Services error body.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ErrorBody() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
code()
Get the code value. |
| java.lang.String |
message()
Get the message value. |
|
Error |
withCode(String code)
Set the code value. |
|
Error |
withMessage(String message)
Set the message value. |
Methods inherited from java.lang.Object
Constructor Details
ErrorBody
public ErrorBody()
Method Details
code
public String code()
Get the code value.
Returns:
message
public String message()
Get the message value.
Returns:
withCode
public ErrorBody withCode(String code)
Set the code value.
Parameters:
Returns:
withMessage
public ErrorBody withMessage(String message)
Set the message value.
Parameters:
Returns: