/** * 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; }
/** * <p> * A list of tags, in the form of name/value pairs, to apply to an email * that you send using <code>SendBulkTemplatedEmail</code>. Tags correspond * to characteristics of the email that you define, so that you can publish * email sending events. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param replacementTags <p> * A list of tags, in the form of name/value pairs, to apply to * an email that you send using * <code>SendBulkTemplatedEmail</code>. Tags correspond to * characteristics of the email that you define, so that you can * publish email sending events. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public BulkEmailDestination withReplacementTags(MessageTag... replacementTags) { if (getReplacementTags() == null) { this.replacementTags = new java.util.ArrayList<MessageTag>(replacementTags.length); } for (MessageTag value : replacementTags) { this.replacementTags.add(value); } return this; }
if (!destinationsListValue.getReplacementTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<MessageTag>) destinationsListValue.getReplacementTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<MessageTag> replacementTagsList = (com.amazonaws.internal.SdkInternalList<MessageTag>) destinationsListValue .getReplacementTags(); int replacementTagsListIndex = 1;
/** * 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(); }
@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.getReplacementTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<MessageTag>) destinationsListValue.getReplacementTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<MessageTag> replacementTagsList = (com.amazonaws.internal.SdkInternalList<MessageTag>) destinationsListValue .getReplacementTags(); int replacementTagsListIndex = 1;