Package com.adyen.model.balanceplatform
Class StringMatch
- java.lang.Object
-
- com.adyen.model.balanceplatform.StringMatch
-
public class StringMatch extends Object
StringMatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringMatch.CustomTypeAdapterFactorystatic classStringMatch.OperationEnumThe type of string matching operation.
-
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 StringMatch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static StringMatchfromJson(String jsonString)Create an instance of StringMatch given an JSON stringStringMatch.OperationEnumgetOperation()The type of string matching operation.StringgetValue()The string to be matched.inthashCode()StringMatchoperation(StringMatch.OperationEnum operation)voidsetOperation(StringMatch.OperationEnum operation)voidsetValue(String value)StringtoJson()Convert an instance of StringMatch to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundStringMatchvalue(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 StringMatch operation(StringMatch.OperationEnum operation)
-
getOperation
public StringMatch.OperationEnum getOperation()
The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,- Returns:
- operation
-
setOperation
public void setOperation(StringMatch.OperationEnum operation)
-
value
public StringMatch value(String value)
-
getValue
public String getValue()
The string to be matched.- Returns:
- value
-
setValue
public void setValue(String 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 StringMatch
-
fromJson
public static StringMatch fromJson(String jsonString) throws IOException
Create an instance of StringMatch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StringMatch
- Throws:
IOException- if the JSON string is invalid with respect to StringMatch
-
toJson
public String toJson()
Convert an instance of StringMatch to an JSON string- Returns:
- JSON string
-
-