Package Avalara.SDK.model.A1099.V2
Class ErrorResponseItem
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.ErrorResponseItem
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ErrorResponseItem extends Object
ErrorResponseItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorResponseItem.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DETAILstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ErrorResponseItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponseItemdetail(String detail)booleanequals(Object o)static ErrorResponseItemfromJson(String jsonString)Create an instance of ErrorResponseItem given an JSON stringStringgetDetail()Get detailStringgetType()Get typeinthashCode()voidsetDetail(String detail)voidsetType(String type)StringtoJson()Convert an instance of ErrorResponseItem to an JSON stringStringtoString()ErrorResponseItemtype(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_DETAIL
public static final String SERIALIZED_NAME_DETAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public ErrorResponseItem type(String type)
-
setType
public void setType(String type)
-
detail
public ErrorResponseItem detail(String detail)
-
setDetail
public void setDetail(String detail)
-
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 ErrorResponseItem
-
fromJson
public static ErrorResponseItem fromJson(String jsonString) throws IOException
Create an instance of ErrorResponseItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorResponseItem
- Throws:
IOException- if the JSON string is invalid with respect to ErrorResponseItem
-
toJson
public String toJson()
Convert an instance of ErrorResponseItem to an JSON string- Returns:
- JSON string
-
-