Class ErrorMessageDTO

java.lang.Object
com.redhat.parodos.sdk.model.ErrorMessageDTO

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ErrorMessageDTO extends Object
ErrorMessageDTO
  • Field Details

  • Constructor Details

    • ErrorMessageDTO

      public ErrorMessageDTO()
  • Method Details

    • date

      public ErrorMessageDTO date(Date date)
    • getDate

      @Nullable public Date getDate()
      Get date
      Returns:
      date
    • setDate

      public void setDate(Date date)
    • description

      public ErrorMessageDTO description(String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • message

      public ErrorMessageDTO message(String message)
    • getMessage

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

      public void setMessage(String message)
    • status

      public ErrorMessageDTO status(Integer status)
    • getStatus

      @Nullable public Integer getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(Integer status)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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 ErrorMessageDTO
    • fromJson

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

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