Class 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.
    • Constructor Detail

      • BatchErrorDetail

        public BatchErrorDetail()
    • Method Detail

      • 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)
      • setValidationErrors

        public void setValidationErrors​(List<ValidationError> validationErrors)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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