Class FeedItemFailedValidationResult


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

      • FeedItemFailedValidationResult

        public FeedItemFailedValidationResult()
    • Method Detail

      • getCode

        @Nullable
        public String getCode()
        Code name of invalid field.
        Returns:
        code
      • setCode

        public void setCode​(String code)
      • getItemIndex

        @Nullable
        public Integer getItemIndex()
        Reference to the line item with an invalid payload. The line count begins at 0.
        Returns:
        itemIndex
      • setItemIndex

        public void setItemIndex​(Integer itemIndex)
      • getMessage

        @Nullable
        public String getMessage()
        Error description
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • getValue

        @Nullable
        public String getValue()
        Original value passed in the request.
        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 FeedItemFailedValidationResult
      • fromJson

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

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