Package Avalara.SDK.model.EInvoicing.V1
Class ErrorResponse
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.ErrorResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ErrorResponse extends Object
Standard format for API error responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DETAILstatic StringSERIALIZED_NAME_INSTANCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TITLE
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponsedetail(String detail)booleanequals(Object o)static ErrorResponsefromJson(String jsonString)Create an instance of ErrorResponse given an JSON stringStringgetDetail()Get detailStringgetInstance()Get instanceStringgetStatus()Get statusStringgetTitle()Get titleinthashCode()ErrorResponseinstance(String instance)voidsetDetail(String detail)voidsetInstance(String instance)voidsetStatus(String status)voidsetTitle(String title)ErrorResponsestatus(String status)ErrorResponsetitle(String title)StringtoJson()Convert an instance of ErrorResponse to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DETAIL
public static final String SERIALIZED_NAME_DETAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTANCE
public static final String SERIALIZED_NAME_INSTANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
title
public ErrorResponse title(String title)
-
setTitle
public void setTitle(String title)
-
status
public ErrorResponse status(String status)
-
setStatus
public void setStatus(String status)
-
detail
public ErrorResponse detail(String detail)
-
setDetail
public void setDetail(String detail)
-
instance
public ErrorResponse instance(String instance)
-
setInstance
public void setInstance(String instance)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ErrorResponse
-
fromJson
public static ErrorResponse fromJson(String jsonString) throws IOException
Create an instance of ErrorResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorResponse
- Throws:
IOException- if the JSON string is invalid with respect to ErrorResponse
-
toJson
public String toJson()
Convert an instance of ErrorResponse to an JSON string- Returns:
- JSON string
-
-