Class RemediatingAction


  • public class RemediatingAction
    extends Object
    RemediatingAction
    • Constructor Detail

      • RemediatingAction

        public RemediatingAction()
    • Method Detail

      • getCode

        public String getCode()
        Get code
        Returns:
        code
      • setCode

        public void setCode​(String code)
      • getMessage

        public String getMessage()
        Get message
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • 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 RemediatingAction
      • fromJson

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

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