Package Avalara.SDK.model.A1099.V2
Class ValidationError
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.ValidationError
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class ValidationError extends Object
ValidationError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationError.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_FIELD
-
Constructor Summary
Constructors Constructor Description ValidationError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationErroraddErrorsItem(String errorsItem)booleanequals(Object o)ValidationErrorerrors(List<String> errors)ValidationErrorfield(String field)static ValidationErrorfromJson(String jsonString)Create an instance of ValidationError given an JSON stringList<String>getErrors()The list of error messagesStringgetField()The field containing the errorinthashCode()voidsetErrors(List<String> errors)voidsetField(String field)StringtoJson()Convert an instance of ValidationError 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_FIELD
public static final String SERIALIZED_NAME_FIELD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
field
public ValidationError field(String field)
-
setField
public void setField(String field)
-
errors
public ValidationError errors(List<String> errors)
-
addErrorsItem
public ValidationError addErrorsItem(String errorsItem)
-
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 ValidationError
-
fromJson
public static ValidationError fromJson(String jsonString) throws IOException
Create an instance of ValidationError given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationError
- Throws:
IOException- if the JSON string is invalid with respect to ValidationError
-
toJson
public String toJson()
Convert an instance of ValidationError to an JSON string- Returns:
- JSON string
-
-