Package Avalara.SDK.model.A1099.V2
Class ErrorResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.ErrorResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ErrorResponse extends Object
ErrorResponse
-
-
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_ERRORSstatic StringSERIALIZED_NAME_TITLE
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponseaddErrorsItem(ErrorResponseItem errorsItem)booleanequals(Object o)ErrorResponseerrors(List<ErrorResponseItem> errors)static ErrorResponsefromJson(String jsonString)Create an instance of ErrorResponse given an JSON stringList<ErrorResponseItem>getErrors()Get errorsStringgetTitle()Get titleinthashCode()voidsetErrors(List<ErrorResponseItem> errors)voidsetTitle(String title)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_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
title
public ErrorResponse title(String title)
-
setTitle
public void setTitle(String title)
-
errors
public ErrorResponse errors(List<ErrorResponseItem> errors)
-
addErrorsItem
public ErrorResponse addErrorsItem(ErrorResponseItem errorsItem)
-
getErrors
@Nullable public List<ErrorResponseItem> getErrors()
Get errors- Returns:
- errors
-
setErrors
public void setErrors(List<ErrorResponseItem> errors)
-
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
-
-