@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode()); return hashCode; }
/** * <p> * Specifies the number of <code>RegexPatternSet</code> objects that you want AWS WAF to return for this request. If * you have more <code>RegexPatternSet</code> objects than the number you specify for <code>Limit</code>, the * response includes a <code>NextMarker</code> value that you can use to get another batch of * <code>RegexPatternSet</code> objects. * </p> * * @param limit * Specifies the number of <code>RegexPatternSet</code> objects that you want AWS WAF to return for this * request. If you have more <code>RegexPatternSet</code> objects than the number you specify for * <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another * batch of <code>RegexPatternSet</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRegexPatternSetsRequest withLimit(Integer limit) { setLimit(limit); return this; }
/** * <p> * If you specify a value for <code>Limit</code> and you have more <code>RegexPatternSet</code> objects than the * value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to * list another group of <code>RegexPatternSet</code> objects. For the second and subsequent * <code>ListRegexPatternSets</code> requests, specify the value of <code>NextMarker</code> from the previous * response to get information about another batch of <code>RegexPatternSet</code> objects. * </p> * * @param nextMarker * If you specify a value for <code>Limit</code> and you have more <code>RegexPatternSet</code> objects than * the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that * allows you to list another group of <code>RegexPatternSet</code> objects. For the second and subsequent * <code>ListRegexPatternSets</code> requests, specify the value of <code>NextMarker</code> from the previous * response to get information about another batch of <code>RegexPatternSet</code> objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRegexPatternSetsRequest withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListRegexPatternSetsRequest == false) return false; ListRegexPatternSetsRequest other = (ListRegexPatternSetsRequest) obj; if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false; if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false) return false; if (other.getLimit() == null ^ this.getLimit() == null) return false; if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false; return true; }
/** * 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 (getLimit() != null) sb.append("Limit: ").append(getLimit()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(ListRegexPatternSetsRequest listRegexPatternSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listRegexPatternSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listRegexPatternSetsRequest.getNextMarker(), NEXTMARKER_BINDING); protocolMarshaller.marshall(listRegexPatternSetsRequest.getLimit(), LIMIT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(ListRegexPatternSetsRequest listRegexPatternSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listRegexPatternSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listRegexPatternSetsRequest.getNextMarker(), NEXTMARKER_BINDING); protocolMarshaller.marshall(listRegexPatternSetsRequest.getLimit(), LIMIT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }