@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getRegexPatternSets() == null) ? 0 : getRegexPatternSets().hashCode()); return hashCode; }
/** * <p> * If you have more <code>RegexPatternSet</code> objects than the number that you specified for <code>Limit</code> * in the request, the response includes a <code>NextMarker</code> value. To list more <code>RegexPatternSet</code> * objects, submit another <code>ListRegexPatternSets</code> request, and specify the <code>NextMarker</code> value * from the response in the <code>NextMarker</code> value in the next request. * </p> * * @param nextMarker * If you have more <code>RegexPatternSet</code> objects than the number that you specified for * <code>Limit</code> in the request, the response includes a <code>NextMarker</code> value. To list more * <code>RegexPatternSet</code> objects, submit another <code>ListRegexPatternSets</code> request, and * specify the <code>NextMarker</code> value from the response in the <code>NextMarker</code> value in the * next request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRegexPatternSetsResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
/** * <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; }
public ListRegexPatternSetsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListRegexPatternSetsResult listRegexPatternSetsResult = new ListRegexPatternSetsResult(); if (context.testExpression("NextMarker", targetDepth)) { context.nextToken(); listRegexPatternSetsResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context)); listRegexPatternSetsResult.setRegexPatternSets(new ListUnmarshaller<RegexPatternSetSummary>(RegexPatternSetSummaryJsonUnmarshaller .getInstance()).unmarshall(context));
public ListRegexPatternSetsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListRegexPatternSetsResult listRegexPatternSetsResult = new ListRegexPatternSetsResult(); if (context.testExpression("NextMarker", targetDepth)) { context.nextToken(); listRegexPatternSetsResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context)); listRegexPatternSetsResult.setRegexPatternSets(new ListUnmarshaller<RegexPatternSetSummary>(RegexPatternSetSummaryJsonUnmarshaller .getInstance()).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListRegexPatternSetsResult == false) return false; ListRegexPatternSetsResult other = (ListRegexPatternSetsResult) obj; if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false; if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false) return false; if (other.getRegexPatternSets() == null ^ this.getRegexPatternSets() == null) return false; if (other.getRegexPatternSets() != null && other.getRegexPatternSets().equals(this.getRegexPatternSets()) == false) return false; return true; }
/** * <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; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getNextMarker() != null) sb.append("NextMarker: ").append(getNextMarker()).append(","); if (getRegexPatternSets() != null) sb.append("RegexPatternSets: ").append(getRegexPatternSets()); sb.append("}"); return sb.toString(); }