Class Problem

    • Constructor Detail

      • Problem

        public Problem()
    • Method Detail

      • getDetail

        @Nullable
        public String getDetail()
        Get detail
        Returns:
        detail
      • setDetail

        public void setDetail​(String detail)
      • setStatus

        public void setStatus​(Integer status)
      • getTitle

        @Nonnull
        public String getTitle()
        Get title
        Returns:
        title
      • setTitle

        public void setTitle​(String title)
      • setType

        public void setType​(String type)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to Problem
      • fromJson

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

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