ErrorResponse Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.textanalytics.models.ErrorResponse

public class ErrorResponse

The ErrorResponse model.

Method Summary

Modifier and Type Method and Description
String code()

Get the code value.

InternalError innerError()

Get the innerError value.

String message()

Get the message value.

String target()

Get the target value.

ErrorResponse withCode(String code)

Set the code value.

ErrorResponse withInnerError(InternalError innerError)

Set the innerError value.

ErrorResponse withMessage(String message)

Set the message value.

ErrorResponse withTarget(String target)

Set the target value.

Method Details

code

public String code()

Get the code value.

Returns:

the code value

innerError

public InternalError innerError()

Get the innerError value.

Returns:

the innerError value

message

public String message()

Get the message value.

Returns:

the message value

target

public String target()

Get the target value.

Returns:

the target value

withCode

public ErrorResponse withCode(String code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the ErrorResponse object itself.

withInnerError

public ErrorResponse withInnerError(InternalError innerError)

Set the innerError value.

Parameters:

innerError - the innerError value to set

Returns:

the ErrorResponse object itself.

withMessage

public ErrorResponse withMessage(String message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the ErrorResponse object itself.

withTarget

public ErrorResponse withTarget(String target)

Set the target value.

Parameters:

target - the target value to set

Returns:

the ErrorResponse object itself.

Applies to