Class MessageDTO

java.lang.Object
org.openapitools.client.model.MessageDTO

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-04T04:53:25.428492722Z[Etc/UTC]", comments="Generator version: 7.8.0") public class MessageDTO extends Object
This class is used to convey a generic message -- usually the result of an error.
  • Field Details

  • Constructor Details

    • MessageDTO

      public MessageDTO()
  • Method Details

    • url

      public MessageDTO url(String url)
    • getUrl

      @Nullable public String getUrl()
      The URL that generated the message.
      Returns:
      url
    • setUrl

      public void setUrl(String url)
    • text

      public MessageDTO text(String text)
    • getText

      @Nullable public String getText()
      The text of the message.
      Returns:
      text
    • setText

      public void setText(String text)
    • date

      public MessageDTO date(OffsetDateTime date)
    • getDate

      @Nullable public OffsetDateTime getDate()
      The date (UTC) of the generated message.
      Returns:
      date
    • setDate

      public void setDate(OffsetDateTime date)
    • 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
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).
    • 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 MessageDTO
    • fromJson

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

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