Package org.openapitools.client.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondate
(OffsetDateTime date) boolean
static MessageDTO
Create an instance of MessageDTO given an JSON stringgetDate()
The date (UTC) of the generated message.getText()
The text of the message.getUrl()
The URL that generated the message.int
hashCode()
void
setDate
(OffsetDateTime date) void
void
private String
Convert the given object to string with each line indented by 4 spaces (except the first line).toJson()
Convert an instance of MessageDTO to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_URL
- See Also:
-
url
-
SERIALIZED_NAME_TEXT
- See Also:
-
text
-
SERIALIZED_NAME_DATE
- See Also:
-
date
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MessageDTO
public MessageDTO()
-
-
Method Details
-
url
-
getUrl
The URL that generated the message.- Returns:
- url
-
setUrl
-
text
-
getText
The text of the message.- Returns:
- text
-
setText
-
date
-
getDate
The date (UTC) of the generated message.- Returns:
- date
-
setDate
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line). -
validateJsonElement
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
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
Convert an instance of MessageDTO to an JSON string- Returns:
- JSON string
-