Package Avalara.SDK.model.A1099.V2
Class ErrorModel
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.ErrorModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ErrorModel extends Object
Error model returned in response for all API errors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorModel.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DETAILstatic StringSERIALIZED_NAME_INSTANCEstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ErrorModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorModeldetail(String detail)booleanequals(Object o)static ErrorModelfromJson(String jsonString)Create an instance of ErrorModel given an JSON stringStringgetDetail()Detailed error message.StringgetInstance()Error code.ObjectgetSource()Cause of error.StringgetStatus()HTTP error code in 4xx or 5xx.StringgetTitle()Description of the HTTP error code.StringgetType()HTTP error code in 4xx or 5xx.inthashCode()ErrorModelinstance(String instance)voidsetDetail(String detail)voidsetInstance(String instance)voidsetSource(Object source)voidsetStatus(String status)voidsetTitle(String title)voidsetType(String type)ErrorModelsource(Object source)ErrorModelstatus(String status)ErrorModeltitle(String title)StringtoJson()Convert an instance of ErrorModel to an JSON stringStringtoString()ErrorModeltype(String type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- 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
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public ErrorModel type(String type)
-
setType
public void setType(String type)
-
status
public ErrorModel status(String status)
-
setStatus
public void setStatus(String status)
-
title
public ErrorModel title(String title)
-
setTitle
public void setTitle(String title)
-
detail
public ErrorModel detail(String detail)
-
setDetail
public void setDetail(String detail)
-
instance
public ErrorModel instance(String instance)
-
setInstance
public void setInstance(String instance)
-
source
public ErrorModel source(Object source)
-
setSource
public void setSource(Object source)
-
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 ErrorModel
-
fromJson
public static ErrorModel fromJson(String jsonString) throws IOException
Create an instance of ErrorModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorModel
- Throws:
IOException- if the JSON string is invalid with respect to ErrorModel
-
toJson
public String toJson()
Convert an instance of ErrorModel to an JSON string- Returns:
- JSON string
-
-