@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; }
/** * @param destination * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withDestination(Destination destination) { setDestination(destination); return this; }
/** * <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> * * @param replacementTags * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTags(java.util.Collection<MessageTag> replacementTags) { setReplacementTags(replacementTags); return this; }
public BulkEmailDestination unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestination bulkEmailDestination = new BulkEmailDestination(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bulkEmailDestination.setDestination(DestinationStaxUnmarshaller.getInstance().unmarshall(context)); continue; bulkEmailDestination.withReplacementTags(new ArrayList<MessageTag>()); continue; bulkEmailDestination.withReplacementTags(MessageTagStaxUnmarshaller.getInstance().unmarshall(context)); continue; bulkEmailDestination.setReplacementTemplateData(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of * key-value pairs in which the keys correspond to replacement tags in the email template. * </p> * * @param replacementTemplateData * A list of replacement values to apply to the template. This parameter is a JSON object, typically * consisting of key-value pairs in which the keys correspond to replacement tags in the email template. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTemplateData(String replacementTemplateData) { setReplacementTemplateData(replacementTemplateData); return this; }
/** * <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; }
public BulkEmailDestination unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestination bulkEmailDestination = new BulkEmailDestination(); bulkEmailDestination.setDestination(DestinationStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bulkEmailDestination.withReplacementTags(MessageTagStaxUnmarshaller .getInstance().unmarshall(context)); continue; bulkEmailDestination.setReplacementTemplateData(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue;
/** * <p> * A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of * key-value pairs in which the keys correspond to replacement tags in the email template. * </p> * * @param replacementTemplateData * A list of replacement values to apply to the template. This parameter is a JSON object, typically * consisting of key-value pairs in which the keys correspond to replacement tags in the email template. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTemplateData(String replacementTemplateData) { setReplacementTemplateData(replacementTemplateData); return this; }
@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 BulkEmailDestination unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestination bulkEmailDestination = new BulkEmailDestination(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bulkEmailDestination.setDestination(DestinationStaxUnmarshaller.getInstance().unmarshall(context)); continue; bulkEmailDestination.withReplacementTags(new ArrayList<MessageTag>()); continue; bulkEmailDestination.withReplacementTags(MessageTagStaxUnmarshaller.getInstance().unmarshall(context)); continue; bulkEmailDestination.setReplacementTemplateData(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <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> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setReplacementTags(java.util.Collection)} or {@link #withReplacementTags(java.util.Collection)} if you * want to override the existing values. * </p> * * @param replacementTags * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTags(MessageTag... replacementTags) { if (this.replacementTags == null) { setReplacementTags(new com.amazonaws.internal.SdkInternalList<MessageTag>(replacementTags.length)); } for (MessageTag ele : replacementTags) { this.replacementTags.add(ele); } return this; }
/** * @param destination * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withDestination(Destination destination) { setDestination(destination); return this; }
/** * 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(); }
/** * <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(java.util.Collection<MessageTag> replacementTags) { setReplacementTags(replacementTags); return this; }
@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; }
/** * <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> * * @param replacementTags * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTags(java.util.Collection<MessageTag> replacementTags) { setReplacementTags(replacementTags); return this; }
@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> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setReplacementTags(java.util.Collection)} or {@link #withReplacementTags(java.util.Collection)} if you * want to override the existing values. * </p> * * @param replacementTags * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestination withReplacementTags(MessageTag... replacementTags) { if (this.replacementTags == null) { setReplacementTags(new com.amazonaws.internal.SdkInternalList<MessageTag>(replacementTags.length)); } for (MessageTag ele : replacementTags) { this.replacementTags.add(ele); } return this; }
/** * 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(); }
Destination destination = destinationsListValue.getDestination(); if (destination != null) { 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; if (destinationsListValue.getReplacementTemplateData() != null) { request.addParameter("Destinations.member." + destinationsListIndex + ".ReplacementTemplateData", StringUtils.fromString(destinationsListValue.getReplacementTemplateData()));