/** * <p> * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address * will receive the reply. * </p> * * @param replyToAddresses * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to * address will receive the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(java.util.Collection<String> replyToAddresses) { setReplyToAddresses(replyToAddresses); return this; }
/** * <p> * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address * will receive the reply. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setReplyToAddresses(java.util.Collection)} or {@link #withReplyToAddresses(java.util.Collection)} if you * want to override the existing values. * </p> * * @param replyToAddresses * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to * address will receive the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(String... replyToAddresses) { if (this.replyToAddresses == null) { setReplyToAddresses(new com.amazonaws.internal.SdkInternalList<String>(replyToAddresses.length)); } for (String ele : replyToAddresses) { this.replyToAddresses.add(ele); } return this; }
/** * <p> * The reply-to email address(es) for the message. If the recipient replies * to the message, each reply-to address will receive the reply. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param replyToAddresses <p> * The reply-to email address(es) for the message. If the * recipient replies to the message, each reply-to address will * receive the reply. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public SendEmailRequest withReplyToAddresses(java.util.Collection<String> replyToAddresses) { setReplyToAddresses(replyToAddresses); return this; }
/** * <p> * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address * will receive the reply. * </p> * * @param replyToAddresses * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to * address will receive the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(java.util.Collection<String> replyToAddresses) { setReplyToAddresses(replyToAddresses); return this; }
/** * <p> * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address * will receive the reply. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setReplyToAddresses(java.util.Collection)} or {@link #withReplyToAddresses(java.util.Collection)} if you * want to override the existing values. * </p> * * @param replyToAddresses * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to * address will receive the reply. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailRequest withReplyToAddresses(String... replyToAddresses) { if (this.replyToAddresses == null) { setReplyToAddresses(new com.amazonaws.internal.SdkInternalList<String>(replyToAddresses.length)); } for (String ele : replyToAddresses) { this.replyToAddresses.add(ele); } return this; }
.ifPresent(r -> sendEmailRequest.setReplyToAddresses(asList(r)));