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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringMatch.OperationEnumgetOperation()The type of string matching operation.StringgetValue()The string to be matched.inthashCode()StringMatchincludeNullValues(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.StringMatchoperation(StringMatch.OperationEnum operation)The type of string matching operation.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,- 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 The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,
-
setOperation
public void setOperation(StringMatch.OperationEnum operation)
The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,- Parameters:
operation- The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,
-
value
public StringMatch value(String value)
The string to be matched.- Parameters:
value- The string to be matched.- Returns:
- the current
StringMatchinstance, allowing for method chaining
-
getValue
public String getValue()
The string to be matched.- Returns:
- value The string to be matched.
-
setValue
public void setValue(String value)
The string to be matched.- Parameters:
value- The string to be matched.
-
includeNullValues
public StringMatch 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 StringMatch 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 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
-
-