Package com.adyen.model.management
Class CreateAllowedOriginRequest
- java.lang.Object
-
- com.adyen.model.management.CreateAllowedOriginRequest
-
public class CreateAllowedOriginRequest extends Object
CreateAllowedOriginRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAllowedOriginRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOMAINstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKS
-
Constructor Summary
Constructors Constructor Description CreateAllowedOriginRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAllowedOriginRequestdomain(String domain)booleanequals(Object o)static CreateAllowedOriginRequestfromJson(String jsonString)Create an instance of CreateAllowedOriginRequest given an JSON stringStringgetDomain()Domain of the allowed origin.StringgetId()Unique identifier of the allowed origin.LinksgetLinks()Get linksinthashCode()CreateAllowedOriginRequestid(String id)CreateAllowedOriginRequestlinks(Links links)voidsetDomain(String domain)voidsetId(String id)voidsetLinks(Links links)StringtoJson()Convert an instance of CreateAllowedOriginRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOMAIN
public static final String SERIALIZED_NAME_DOMAIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public CreateAllowedOriginRequest links(Links links)
-
getLinks
public Links getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(Links links)
-
domain
public CreateAllowedOriginRequest domain(String domain)
-
getDomain
public String getDomain()
Domain of the allowed origin.- Returns:
- domain
-
setDomain
public void setDomain(String domain)
-
id
public CreateAllowedOriginRequest id(String id)
-
getId
public String getId()
Unique identifier of the allowed origin.- Returns:
- id
-
setId
public void setId(String id)
-
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 CreateAllowedOriginRequest
-
fromJson
public static CreateAllowedOriginRequest fromJson(String jsonString) throws IOException
Create an instance of CreateAllowedOriginRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAllowedOriginRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateAllowedOriginRequest
-
toJson
public String toJson()
Convert an instance of CreateAllowedOriginRequest to an JSON string- Returns:
- JSON string
-
-