@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGeoMatchSetId() == null) ? 0 : getGeoMatchSetId().hashCode()); hashCode = prime * hashCode + ((getChangeToken() == null) ? 0 : getChangeToken().hashCode()); return hashCode; }
/** * <p> * The value returned by the most recent call to <a>GetChangeToken</a>. * </p> * * @param changeToken * The value returned by the most recent call to <a>GetChangeToken</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteGeoMatchSetRequest withChangeToken(String changeToken) { setChangeToken(changeToken); return this; }
/** * <p> * The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to delete. <code>GeoMatchSetId</code> is * returned by <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>. * </p> * * @param geoMatchSetId * The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to delete. * <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteGeoMatchSetRequest withGeoMatchSetId(String geoMatchSetId) { setGeoMatchSetId(geoMatchSetId); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteGeoMatchSetRequest == false) return false; DeleteGeoMatchSetRequest other = (DeleteGeoMatchSetRequest) obj; if (other.getGeoMatchSetId() == null ^ this.getGeoMatchSetId() == null) return false; if (other.getGeoMatchSetId() != null && other.getGeoMatchSetId().equals(this.getGeoMatchSetId()) == false) return false; if (other.getChangeToken() == null ^ this.getChangeToken() == null) return false; if (other.getChangeToken() != null && other.getChangeToken().equals(this.getChangeToken()) == 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 (getGeoMatchSetId() != null) sb.append("GeoMatchSetId: ").append(getGeoMatchSetId()).append(","); if (getChangeToken() != null) sb.append("ChangeToken: ").append(getChangeToken()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DeleteGeoMatchSetRequest deleteGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (deleteGeoMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteGeoMatchSetRequest.getGeoMatchSetId(), GEOMATCHSETID_BINDING); protocolMarshaller.marshall(deleteGeoMatchSetRequest.getChangeToken(), CHANGETOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(DeleteGeoMatchSetRequest deleteGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) { if (deleteGeoMatchSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteGeoMatchSetRequest.getGeoMatchSetId(), GEOMATCHSETID_BINDING); protocolMarshaller.marshall(deleteGeoMatchSetRequest.getChangeToken(), CHANGETOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }