Class Message
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.Message
-
public class Message extends Object
Message
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CODEstatic StringJSON_PROPERTY_TEXT
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Messagecode(String code)booleanequals(Object o)Return true if this Message object is equal to o.static MessagefromJson(String jsonString)Create an instance of Message given an JSON stringStringgetCode()The message code.StringgetText()The message text.inthashCode()voidsetCode(String code)voidsetText(String text)Messagetext(String text)StringtoJson()Convert an instance of Message to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEXT
public static final String JSON_PROPERTY_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public String getCode()
The message code.- Returns:
- code
-
setCode
public void setCode(String code)
-
getText
public String getText()
The message text.- Returns:
- text
-
setText
public void setText(String text)
-
equals
public boolean equals(Object o)
Return true if this Message object is equal to o.
-
fromJson
public static Message fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Message given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Message
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Message
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Message to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-