Package com.adyen.model.balanceplatform
Class CountriesRestriction
- java.lang.Object
-
- com.adyen.model.balanceplatform.CountriesRestriction
-
public class CountriesRestriction extends Object
CountriesRestriction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCountriesRestriction.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_OPERATIONstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description CountriesRestriction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CountriesRestrictionaddValueItem(String valueItem)booleanequals(Object o)static CountriesRestrictionfromJson(String jsonString)Create an instance of CountriesRestriction given an JSON stringStringgetOperation()Defines how the condition must be evaluated.List<String>getValue()List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes.inthashCode()CountriesRestrictionoperation(String operation)voidsetOperation(String operation)voidsetValue(List<String> value)StringtoJson()Convert an instance of CountriesRestriction to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundCountriesRestrictionvalue(List<String> value)
-
-
-
Field Detail
-
SERIALIZED_NAME_OPERATION
public static final String SERIALIZED_NAME_OPERATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
operation
public CountriesRestriction operation(String operation)
-
getOperation
public String getOperation()
Defines how the condition must be evaluated.- Returns:
- operation
-
setOperation
public void setOperation(String operation)
-
value
public CountriesRestriction value(List<String> value)
-
addValueItem
public CountriesRestriction addValueItem(String valueItem)
-
getValue
public List<String> getValue()
List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes.- Returns:
- value
-
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 CountriesRestriction
-
fromJson
public static CountriesRestriction fromJson(String jsonString) throws IOException
Create an instance of CountriesRestriction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CountriesRestriction
- Throws:
IOException- if the JSON string is invalid with respect to CountriesRestriction
-
toJson
public String toJson()
Convert an instance of CountriesRestriction to an JSON string- Returns:
- JSON string
-
-