ErrorBody Class

  • java.lang.Object
    • com.azure.communication.administration.models.ErrorBody

public final class ErrorBody

The ErrorBody model.

Constructor Summary

Constructor Description
ErrorBody()

Method Summary

Modifier and Type Method and Description
String getCode()

Get the code property: The error code in the error response.

String getMessage()

Get the message property: The error message in the error response.

ErrorBody setCode(String code)

Set the code property: The error code in the error response.

ErrorBody setMessage(String message)

Set the message property: The error message in the error response.

Methods inherited from java.lang.Object

Constructor Details

ErrorBody

public ErrorBody()

Method Details

getCode

public String getCode()

Get the code property: The error code in the error response.

Returns:

the code value.

getMessage

public String getMessage()

Get the message property: The error message in the error response.

Returns:

the message value.

setCode

public ErrorBody setCode(String code)

Set the code property: The error code in the error response.

Parameters:

code - the code value to set.

Returns:

the ErrorBody object itself.

setMessage

public ErrorBody setMessage(String message)

Set the message property: The error message in the error response.

Parameters:

message - the message value to set.

Returns:

the ErrorBody object itself.

Applies to