/** * <p> * Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * </p> * * @param regexPatternStrings * Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withRegexPatternStrings(java.util.Collection<String> regexPatternStrings) { setRegexPatternStrings(regexPatternStrings); return this; }
/** * <p> * Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRegexPatternStrings(java.util.Collection)} or {@link #withRegexPatternStrings(java.util.Collection)} * if you want to override the existing values. * </p> * * @param regexPatternStrings * Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as * <code>B[a@]dB[o0]t</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withRegexPatternStrings(String... regexPatternStrings) { if (this.regexPatternStrings == null) { setRegexPatternStrings(new java.util.ArrayList<String>(regexPatternStrings.length)); } for (String ele : regexPatternStrings) { this.regexPatternStrings.add(ele); } return this; }
regexPatternSet.setRegexPatternStrings(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
regexPatternSet.setRegexPatternStrings(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));