@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFieldToMatch() == null) ? 0 : getFieldToMatch().hashCode()); hashCode = prime * hashCode + ((getTextTransformation() == null) ? 0 : getTextTransformation().hashCode()); return hashCode; }
/** * 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 (getFieldToMatch() != null) sb.append("FieldToMatch: ").append(getFieldToMatch()).append(","); if (getTextTransformation() != null) sb.append("TextTransformation: ").append(getTextTransformation()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof XssMatchTuple == false) return false; XssMatchTuple other = (XssMatchTuple) obj; if (other.getFieldToMatch() == null ^ this.getFieldToMatch() == null) return false; if (other.getFieldToMatch() != null && other.getFieldToMatch().equals(this.getFieldToMatch()) == false) return false; if (other.getTextTransformation() == null ^ this.getTextTransformation() == null) return false; if (other.getTextTransformation() != null && other.getTextTransformation().equals(this.getTextTransformation()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(XssMatchTuple xssMatchTuple, ProtocolMarshaller protocolMarshaller) { if (xssMatchTuple == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(xssMatchTuple.getFieldToMatch(), FIELDTOMATCH_BINDING); protocolMarshaller.marshall(xssMatchTuple.getTextTransformation(), TEXTTRANSFORMATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(XssMatchTuple xssMatchTuple, ProtocolMarshaller protocolMarshaller) { if (xssMatchTuple == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(xssMatchTuple.getFieldToMatch(), FIELDTOMATCH_BINDING); protocolMarshaller.marshall(xssMatchTuple.getTextTransformation(), TEXTTRANSFORMATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }