Class ItemFailedValidationResult


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class ItemFailedValidationResult
    extends Object
    ItemFailedValidationResult
    • Constructor Detail

      • ItemFailedValidationResult

        public ItemFailedValidationResult()
    • Method Detail

      • getCode

        @Nullable
        public String getCode()
        Code for the validation error.
        Returns:
        code
      • setCode

        public void setCode​(String code)
      • getItemIndex

        @Nullable
        public Integer getItemIndex()
        Index of the conflicting item
        Returns:
        itemIndex
      • setItemIndex

        public void setItemIndex​(Integer itemIndex)
      • getMessage

        @Nullable
        public String getMessage()
        Validation error message for the item.
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • getValue

        @Nullable
        public String getValue()
        The value supplied to the API.
        Returns:
        value
      • setValue

        public void setValue​(String value)
      • 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 ItemFailedValidationResult
      • fromJson

        public static ItemFailedValidationResult fromJson​(String jsonString)
                                                   throws IOException
        Create an instance of ItemFailedValidationResult given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ItemFailedValidationResult
        Throws:
        IOException - if the JSON string is invalid with respect to ItemFailedValidationResult
      • toJson

        public String toJson()
        Convert an instance of ItemFailedValidationResult to an JSON string
        Returns:
        JSON string