/** * <p> * An array of <a>RegexPatternSetSummary</a> objects. * </p> * * @param regexPatternSets * An array of <a>RegexPatternSetSummary</a> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRegexPatternSetsResult withRegexPatternSets(java.util.Collection<RegexPatternSetSummary> regexPatternSets) { setRegexPatternSets(regexPatternSets); return this; }
/** * <p> * An array of <a>RegexPatternSetSummary</a> objects. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRegexPatternSets(java.util.Collection)} or {@link #withRegexPatternSets(java.util.Collection)} if you * want to override the existing values. * </p> * * @param regexPatternSets * An array of <a>RegexPatternSetSummary</a> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRegexPatternSetsResult withRegexPatternSets(RegexPatternSetSummary... regexPatternSets) { if (this.regexPatternSets == null) { setRegexPatternSets(new java.util.ArrayList<RegexPatternSetSummary>(regexPatternSets.length)); } for (RegexPatternSetSummary ele : regexPatternSets) { this.regexPatternSets.add(ele); } return this; }
listRegexPatternSetsResult.setRegexPatternSets(new ListUnmarshaller<RegexPatternSetSummary>(RegexPatternSetSummaryJsonUnmarshaller .getInstance()).unmarshall(context));
listRegexPatternSetsResult.setRegexPatternSets(new ListUnmarshaller<RegexPatternSetSummary>(RegexPatternSetSummaryJsonUnmarshaller .getInstance()).unmarshall(context));