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.OperationEnumThe type of string matching operation.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_OPERATIONstatic StringJSON_PROPERTY_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)Return true if this StringMatch object is equal to 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)The type of string matching operation.voidsetOperation(StringMatch.OperationEnum operation)The type of string matching operation.voidsetValue(String value)The string to be matched.StringtoJson()Convert an instance of StringMatch to an JSON stringStringtoString()StringMatchvalue(String value)The string to be matched.
-
-
-
Field Detail
-
JSON_PROPERTY_OPERATION
public static final String JSON_PROPERTY_OPERATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
operation
public StringMatch operation(StringMatch.OperationEnum operation)
The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,- Parameters:
operation-- Returns:
- the current
StringMatchinstance, allowing for method chaining
-
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)
The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,- Parameters:
operation-
-
value
public StringMatch value(String value)
The string to be matched.- Parameters:
value-- Returns:
- the current
StringMatchinstance, allowing for method chaining
-
getValue
public String getValue()
The string to be matched.- Returns:
- value
-
setValue
public void setValue(String value)
The string to be matched.- Parameters:
value-
-
equals
public boolean equals(Object o)
Return true if this StringMatch object is equal to o.
-
fromJson
public static StringMatch fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StringMatch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StringMatch
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StringMatch
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StringMatch to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-