@Data@Accessors(chain = true)public class RegexEntity { @Matcher(regex = "^\\d+$") private String regexValid; @Matcher(regex = "^\\d+$", accept = false) private String regexInValid;}