Package com.adyen.model.management
Class SplitConfiguration
- java.lang.Object
-
- com.adyen.model.management.SplitConfiguration
-
public class SplitConfiguration extends Object
SplitConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_RULESstatic StringJSON_PROPERTY_SPLIT_CONFIGURATION_ID
-
Constructor Summary
Constructors Constructor Description SplitConfiguration()SplitConfiguration(String splitConfigurationId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitConfigurationaddRulesItem(SplitConfigurationRule rulesItem)SplitConfigurationdescription(String description)Your description for the split configuration.booleanequals(Object o)Return true if this SplitConfiguration object is equal to o.static SplitConfigurationfromJson(String jsonString)Create an instance of SplitConfiguration given an JSON stringStringgetDescription()Your description for the split configuration.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<SplitConfigurationRule>getRules()Array of rules that define the split configuration behavior.StringgetSplitConfigurationId()Unique identifier of the split configuration.inthashCode()SplitConfigurationincludeNullValues(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.SplitConfigurationrules(List<SplitConfigurationRule> rules)Array of rules that define the split configuration behavior.voidsetDescription(String description)Your description for the split configuration.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRules(List<SplitConfigurationRule> rules)Array of rules that define the split configuration behavior.StringtoJson()Convert an instance of SplitConfiguration to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RULES
public static final String JSON_PROPERTY_RULES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_CONFIGURATION_ID
public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SplitConfiguration
public SplitConfiguration()
-
SplitConfiguration
public SplitConfiguration(String splitConfigurationId)
-
-
Method Detail
-
description
public SplitConfiguration description(String description)
Your description for the split configuration.- Parameters:
description- Your description for the split configuration.- Returns:
- the current
SplitConfigurationinstance, allowing for method chaining
-
getDescription
public String getDescription()
Your description for the split configuration.- Returns:
- description Your description for the split configuration.
-
setDescription
public void setDescription(String description)
Your description for the split configuration.- Parameters:
description- Your description for the split configuration.
-
rules
public SplitConfiguration rules(List<SplitConfigurationRule> rules)
Array of rules that define the split configuration behavior.- Parameters:
rules- Array of rules that define the split configuration behavior.- Returns:
- the current
SplitConfigurationinstance, allowing for method chaining
-
addRulesItem
public SplitConfiguration addRulesItem(SplitConfigurationRule rulesItem)
-
getRules
public List<SplitConfigurationRule> getRules()
Array of rules that define the split configuration behavior.- Returns:
- rules Array of rules that define the split configuration behavior.
-
setRules
public void setRules(List<SplitConfigurationRule> rules)
Array of rules that define the split configuration behavior.- Parameters:
rules- Array of rules that define the split configuration behavior.
-
getSplitConfigurationId
public String getSplitConfigurationId()
Unique identifier of the split configuration.- Returns:
- splitConfigurationId Unique identifier of the split configuration.
-
includeNullValues
public SplitConfiguration 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 SplitConfiguration 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 SplitConfiguration fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SplitConfiguration given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SplitConfiguration
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SplitConfiguration
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SplitConfiguration to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-