@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 <a>XssMatchSet</a> objects that you want AWS WAF to return for this request. If you have * more <code>XssMatchSet</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>Rules</code>. * </p> * * @param limit * Specifies the number of <a>XssMatchSet</a> objects that you want AWS WAF to return for this request. If * you have more <code>XssMatchSet</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>Rules</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListXssMatchSetsRequest withLimit(Integer limit) { setLimit(limit); return this; }
/** * <p> * If you specify a value for <code>Limit</code> and you have more <a>XssMatchSet</a> 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>XssMatchSets</code>. For the second and subsequent <code>ListXssMatchSets</code> requests, * specify the value of <code>NextMarker</code> from the previous response to get information about another batch of * <code>XssMatchSets</code>. * </p> * * @param nextMarker * If you specify a value for <code>Limit</code> and you have more <a>XssMatchSet</a> 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>XssMatchSets</code>. For the second and subsequent * <code>ListXssMatchSets</code> requests, specify the value of <code>NextMarker</code> from the previous * response to get information about another batch of <code>XssMatchSets</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListXssMatchSetsRequest 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 ListXssMatchSetsRequest == false) return false; ListXssMatchSetsRequest other = (ListXssMatchSetsRequest) 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(ListXssMatchSetsRequest listXssMatchSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listXssMatchSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listXssMatchSetsRequest.getNextMarker(), NEXTMARKER_BINDING); protocolMarshaller.marshall(listXssMatchSetsRequest.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(ListXssMatchSetsRequest listXssMatchSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listXssMatchSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listXssMatchSetsRequest.getNextMarker(), NEXTMARKER_BINDING); protocolMarshaller.marshall(listXssMatchSetsRequest.getLimit(), LIMIT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }