Class StringMatch


  • public class StringMatch
    extends Object
    StringMatch
    • Constructor Detail

      • StringMatch

        public StringMatch()
    • 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 StringMatch instance, 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 StringMatch instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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