Package com.adyen.model.management
Class CreateAllowedOriginRequest
- java.lang.Object
-
- com.adyen.model.management.CreateAllowedOriginRequest
-
public class CreateAllowedOriginRequest extends Object
CreateAllowedOriginRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOMAINstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_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)Domain of the allowed origin.booleanequals(Object o)Return true if this CreateAllowedOriginRequest object is equal to 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()linksinthashCode()CreateAllowedOriginRequestid(String id)Unique identifier of the allowed origin.CreateAllowedOriginRequestlinks(Links links)linksvoidsetDomain(String domain)Domain of the allowed origin.voidsetId(String id)Unique identifier of the allowed origin.voidsetLinks(Links links)linksStringtoJson()Convert an instance of CreateAllowedOriginRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOMAIN
public static final String JSON_PROPERTY_DOMAIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public CreateAllowedOriginRequest links(Links links)
links- Parameters:
links-- Returns:
- the current
CreateAllowedOriginRequestinstance, allowing for method chaining
-
getLinks
public Links getLinks()
links- Returns:
- links
-
setLinks
public void setLinks(Links links)
links- Parameters:
links-
-
domain
public CreateAllowedOriginRequest domain(String domain)
Domain of the allowed origin.- Parameters:
domain-- Returns:
- the current
CreateAllowedOriginRequestinstance, allowing for method chaining
-
getDomain
public String getDomain()
Domain of the allowed origin.- Returns:
- domain
-
setDomain
public void setDomain(String domain)
Domain of the allowed origin.- Parameters:
domain-
-
id
public CreateAllowedOriginRequest id(String id)
Unique identifier of the allowed origin.- Parameters:
id-- Returns:
- the current
CreateAllowedOriginRequestinstance, allowing for method chaining
-
getId
public String getId()
Unique identifier of the allowed origin.- Returns:
- id
-
setId
public void setId(String id)
Unique identifier of the allowed origin.- Parameters:
id-
-
equals
public boolean equals(Object o)
Return true if this CreateAllowedOriginRequest object is equal to o.
-
fromJson
public static CreateAllowedOriginRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateAllowedOriginRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAllowedOriginRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateAllowedOriginRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateAllowedOriginRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-