Package com.adyen.model.management
Class AllowedOrigin
- java.lang.Object
-
- com.adyen.model.management.AllowedOrigin
-
public class AllowedOrigin extends Object
AllowedOrigin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllowedOrigin.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 AllowedOrigin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOrigindomain(String domain)booleanequals(Object o)static AllowedOriginfromJson(String jsonString)Create an instance of AllowedOrigin given an JSON stringStringgetDomain()Domain of the allowed origin.StringgetId()Unique identifier of the allowed origin.LinksgetLinks()Get linksinthashCode()AllowedOriginid(String id)AllowedOriginlinks(Links links)voidsetDomain(String domain)voidsetId(String id)voidsetLinks(Links links)StringtoJson()Convert an instance of AllowedOrigin 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 AllowedOrigin links(Links links)
-
getLinks
public Links getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(Links links)
-
domain
public AllowedOrigin domain(String domain)
-
getDomain
public String getDomain()
Domain of the allowed origin.- Returns:
- domain
-
setDomain
public void setDomain(String domain)
-
id
public AllowedOrigin 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 AllowedOrigin
-
fromJson
public static AllowedOrigin fromJson(String jsonString) throws IOException
Create an instance of AllowedOrigin given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AllowedOrigin
- Throws:
IOException- if the JSON string is invalid with respect to AllowedOrigin
-
toJson
public String toJson()
Convert an instance of AllowedOrigin to an JSON string- Returns:
- JSON string
-
-