Package com.adyen.model.management
Class AllowedOriginsResponse
- java.lang.Object
-
- com.adyen.model.management.AllowedOriginsResponse
-
public class AllowedOriginsResponse extends Object
AllowedOriginsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATA
-
Constructor Summary
Constructors Constructor Description AllowedOriginsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedOriginsResponseaddDataItem(AllowedOrigin dataItem)AllowedOriginsResponsedata(List<AllowedOrigin> data)List of allowed origins.booleanequals(Object o)Return true if this AllowedOriginsResponse object is equal to o.static AllowedOriginsResponsefromJson(String jsonString)Create an instance of AllowedOriginsResponse given an JSON stringList<AllowedOrigin>getData()List of allowed origins.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.inthashCode()AllowedOriginsResponseincludeNullValues(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.voidsetData(List<AllowedOrigin> data)List of allowed origins.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of AllowedOriginsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public AllowedOriginsResponse data(List<AllowedOrigin> data)
List of allowed origins.- Parameters:
data- List of allowed origins.- Returns:
- the current
AllowedOriginsResponseinstance, allowing for method chaining
-
addDataItem
public AllowedOriginsResponse addDataItem(AllowedOrigin dataItem)
-
getData
public List<AllowedOrigin> getData()
List of allowed origins.- Returns:
- data List of allowed origins.
-
setData
public void setData(List<AllowedOrigin> data)
List of allowed origins.- Parameters:
data- List of allowed origins.
-
includeNullValues
public AllowedOriginsResponse 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 AllowedOriginsResponse 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 AllowedOriginsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AllowedOriginsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AllowedOriginsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AllowedOriginsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AllowedOriginsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-