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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()Unique identifier of the allowed origin.LinksgetLinks()Get linksinthashCode()CreateAllowedOriginRequestid(String id)Unique identifier of the allowed origin.CreateAllowedOriginRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.CreateAllowedOriginRequestlinks(Links links)linksvoidsetDomain(String domain)Domain of the allowed origin.voidsetId(String id)Unique identifier of the allowed origin.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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()
Get 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- Domain of the allowed origin.- Returns:
- the current
CreateAllowedOriginRequestinstance, allowing for method chaining
-
getDomain
public String getDomain()
Domain of the allowed origin.- Returns:
- domain Domain of the allowed origin.
-
setDomain
public void setDomain(String domain)
Domain of the allowed origin.- Parameters:
domain- Domain of the allowed origin.
-
id
public CreateAllowedOriginRequest id(String id)
Unique identifier of the allowed origin.- Parameters:
id- Unique identifier of the allowed origin.- Returns:
- the current
CreateAllowedOriginRequestinstance, allowing for method chaining
-
getId
public String getId()
Unique identifier of the allowed origin.- Returns:
- id Unique identifier of the allowed origin.
-
setId
public void setId(String id)
Unique identifier of the allowed origin.- Parameters:
id- Unique identifier of the allowed origin.
-
includeNullValues
public CreateAllowedOriginRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this CreateAllowedOriginRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-