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