/** * 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 (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getReplacementTags() != null) sb.append("ReplacementTags: ").append(getReplacementTags()).append(","); if (getReplacementTemplateData() != null) sb.append("ReplacementTemplateData: ").append(getReplacementTemplateData()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getReplacementTags() == null) ? 0 : getReplacementTags().hashCode()); hashCode = prime * hashCode + ((getReplacementTemplateData() == null) ? 0 : getReplacementTemplateData().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestination == false) return false; BulkEmailDestination other = (BulkEmailDestination) obj; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getReplacementTags() == null ^ this.getReplacementTags() == null) return false; if (other.getReplacementTags() != null && other.getReplacementTags().equals(this.getReplacementTags()) == false) return false; if (other.getReplacementTemplateData() == null ^ this.getReplacementTemplateData() == null) return false; if (other.getReplacementTemplateData() != null && other.getReplacementTemplateData().equals(this.getReplacementTemplateData()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDestination() != null) sb.append("Destination: " + getDestination() + ","); if (getReplacementTags() != null) sb.append("ReplacementTags: " + getReplacementTags() + ","); if (getReplacementTemplateData() != null) sb.append("ReplacementTemplateData: " + getReplacementTemplateData()); sb.append("}"); return sb.toString(); }
if (destinationsListValue.getReplacementTemplateData() != null) { request.addParameter("Destinations.member." + destinationsListIndex + ".ReplacementTemplateData", StringUtils.fromString(destinationsListValue.getReplacementTemplateData()));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getReplacementTags() == null) ? 0 : getReplacementTags().hashCode()); hashCode = prime * hashCode + ((getReplacementTemplateData() == null) ? 0 : getReplacementTemplateData() .hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestination == false) return false; BulkEmailDestination other = (BulkEmailDestination) obj; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getReplacementTags() == null ^ this.getReplacementTags() == null) return false; if (other.getReplacementTags() != null && other.getReplacementTags().equals(this.getReplacementTags()) == false) return false; if (other.getReplacementTemplateData() == null ^ this.getReplacementTemplateData() == null) return false; if (other.getReplacementTemplateData() != null && other.getReplacementTemplateData().equals(this.getReplacementTemplateData()) == false) return false; return true; } }
public void marshall(BulkEmailDestination _bulkEmailDestination, Request<?> request, String _prefix) { String prefix; if (_bulkEmailDestination.getDestination() != null) { prefix = _prefix + "Destination"; Destination destination = _bulkEmailDestination.getDestination(); DestinationStaxMarshaller.getInstance().marshall(destination, request, prefix + "."); } if (_bulkEmailDestination.getReplacementTags() != null) { prefix = _prefix + "ReplacementTags"; java.util.List<MessageTag> replacementTags = _bulkEmailDestination.getReplacementTags(); int replacementTagsIndex = 1; String replacementTagsPrefix = prefix; for (MessageTag replacementTagsItem : replacementTags) { prefix = replacementTagsPrefix + ".member." + replacementTagsIndex; if (replacementTagsItem != null) { MessageTagStaxMarshaller.getInstance().marshall(replacementTagsItem, request, prefix + "."); } replacementTagsIndex++; } prefix = replacementTagsPrefix; } if (_bulkEmailDestination.getReplacementTemplateData() != null) { prefix = _prefix + "ReplacementTemplateData"; String replacementTemplateData = _bulkEmailDestination.getReplacementTemplateData(); request.addParameter(prefix, StringUtils.fromString(replacementTemplateData)); } }
/** * 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 (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getReplacementTags() != null) sb.append("ReplacementTags: ").append(getReplacementTags()).append(","); if (getReplacementTemplateData() != null) sb.append("ReplacementTemplateData: ").append(getReplacementTemplateData()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getReplacementTags() == null) ? 0 : getReplacementTags().hashCode()); hashCode = prime * hashCode + ((getReplacementTemplateData() == null) ? 0 : getReplacementTemplateData().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestination == false) return false; BulkEmailDestination other = (BulkEmailDestination) obj; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getReplacementTags() == null ^ this.getReplacementTags() == null) return false; if (other.getReplacementTags() != null && other.getReplacementTags().equals(this.getReplacementTags()) == false) return false; if (other.getReplacementTemplateData() == null ^ this.getReplacementTemplateData() == null) return false; if (other.getReplacementTemplateData() != null && other.getReplacementTemplateData().equals(this.getReplacementTemplateData()) == false) return false; return true; }
if (destinationsListValue.getReplacementTemplateData() != null) { request.addParameter("Destinations.member." + destinationsListIndex + ".ReplacementTemplateData", StringUtils.fromString(destinationsListValue.getReplacementTemplateData()));