@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; }
@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); } }