Package com.adyen.model.management
Class GenerateHmacKeyResponse
- java.lang.Object
-
- com.adyen.model.management.GenerateHmacKeyResponse
-
public class GenerateHmacKeyResponse extends Object
GenerateHmacKeyResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerateHmacKeyResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HMAC_KEY
-
Constructor Summary
Constructors Constructor Description GenerateHmacKeyResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GenerateHmacKeyResponsefromJson(String jsonString)Create an instance of GenerateHmacKeyResponse given an JSON stringStringgetHmacKey()The HMAC key generated for this webhook.inthashCode()GenerateHmacKeyResponsehmacKey(String hmacKey)voidsetHmacKey(String hmacKey)StringtoJson()Convert an instance of GenerateHmacKeyResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
hmacKey
public GenerateHmacKeyResponse hmacKey(String hmacKey)
-
getHmacKey
public String getHmacKey()
The HMAC key generated for this webhook.- Returns:
- hmacKey
-
setHmacKey
public void setHmacKey(String hmacKey)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 GenerateHmacKeyResponse
-
fromJson
public static GenerateHmacKeyResponse fromJson(String jsonString) throws IOException
Create an instance of GenerateHmacKeyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GenerateHmacKeyResponse
- Throws:
IOException- if the JSON string is invalid with respect to GenerateHmacKeyResponse
-
toJson
public String toJson()
Convert an instance of GenerateHmacKeyResponse to an JSON string- Returns:
- JSON string
-
-