Class ValidationRuleError

java.lang.Object
io.voucherify.client.model.ValidationRuleError

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ValidationRuleError extends Object
Contains the error message returned from API when validation / redemption fails to meet requirements of defined rules.
  • Field Details

  • Constructor Details

    • ValidationRuleError

      public ValidationRuleError()
  • Method Details

    • message

      public ValidationRuleError message(String message)
    • getMessage

      @Nullable public String getMessage()
      The error message returned from API when validation / redemption fails to meet requirements of defined rules.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static ValidationRuleError fromJson(String jsonString) throws IOException
      Create an instance of ValidationRuleError given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ValidationRuleError
      Throws:
      IOException - if the JSON string is invalid with respect to ValidationRuleError
    • toJson

      public String toJson()
      Convert an instance of ValidationRuleError to an JSON string
      Returns:
      JSON string