Package Avalara.SDK.model.EInvoicing.V1
Class BatchErrorDetail
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.BatchErrorDetail
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class BatchErrorDetail extends Object
Represents detailed error information for an individual entry in a batch request. Includes the index of the failed item and associated validation errors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchErrorDetail.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_INDEXstatic StringSERIALIZED_NAME_VALIDATION_ERRORS
-
Constructor Summary
Constructors Constructor Description BatchErrorDetail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchErrorDetailaddValidationErrorsItem(ValidationError validationErrorsItem)booleanequals(Object o)static BatchErrorDetailfromJson(String jsonString)Create an instance of BatchErrorDetail given an JSON stringIntegergetIndex()The index of the request that caused the error in the batch.List<ValidationError>getValidationErrors()Get validationErrorsinthashCode()BatchErrorDetailindex(Integer index)voidsetIndex(Integer index)voidsetValidationErrors(List<ValidationError> validationErrors)StringtoJson()Convert an instance of BatchErrorDetail to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundBatchErrorDetailvalidationErrors(List<ValidationError> validationErrors)
-
-
-
Field Detail
-
SERIALIZED_NAME_INDEX
public static final String SERIALIZED_NAME_INDEX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALIDATION_ERRORS
public static final String SERIALIZED_NAME_VALIDATION_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
index
public BatchErrorDetail index(Integer index)
-
getIndex
@Nullable public Integer getIndex()
The index of the request that caused the error in the batch.- Returns:
- index
-
setIndex
public void setIndex(Integer index)
-
validationErrors
public BatchErrorDetail validationErrors(List<ValidationError> validationErrors)
-
addValidationErrorsItem
public BatchErrorDetail addValidationErrorsItem(ValidationError validationErrorsItem)
-
getValidationErrors
@Nullable public List<ValidationError> getValidationErrors()
Get validationErrors- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
-
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 BatchErrorDetail
-
fromJson
public static BatchErrorDetail fromJson(String jsonString) throws IOException
Create an instance of BatchErrorDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BatchErrorDetail
- Throws:
IOException- if the JSON string is invalid with respect to BatchErrorDetail
-
toJson
public String toJson()
Convert an instance of BatchErrorDetail to an JSON string- Returns:
- JSON string
-
-