Package com.adyen.model.management
Class GenerateApiKeyResponse
- java.lang.Object
-
- com.adyen.model.management.GenerateApiKeyResponse
-
public class GenerateApiKeyResponse extends Object
GenerateApiKeyResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerateApiKeyResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_API_KEY
-
Constructor Summary
Constructors Constructor Description GenerateApiKeyResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateApiKeyResponseapiKey(String apiKey)booleanequals(Object o)static GenerateApiKeyResponsefromJson(String jsonString)Create an instance of GenerateApiKeyResponse given an JSON stringStringgetApiKey()The generated API key.inthashCode()voidsetApiKey(String apiKey)StringtoJson()Convert an instance of GenerateApiKeyResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
apiKey
public GenerateApiKeyResponse apiKey(String apiKey)
-
getApiKey
public String getApiKey()
The generated API key.- Returns:
- apiKey
-
setApiKey
public void setApiKey(String apiKey)
-
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 GenerateApiKeyResponse
-
fromJson
public static GenerateApiKeyResponse fromJson(String jsonString) throws IOException
Create an instance of GenerateApiKeyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GenerateApiKeyResponse
- Throws:
IOException- if the JSON string is invalid with respect to GenerateApiKeyResponse
-
toJson
public String toJson()
Convert an instance of GenerateApiKeyResponse to an JSON string- Returns:
- JSON string
-
-