/** * <p> * The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this * rule will match all recipients under all verified domains. * </p> * * @param recipients * The recipient domains and email addresses that the receipt rule applies to. If this field is not * specified, this rule will match all recipients under all verified domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withRecipients(java.util.Collection<String> recipients) { setRecipients(recipients); return this; }
/** * <p> * The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this * rule will match all recipients under all verified domains. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRecipients(java.util.Collection)} or {@link #withRecipients(java.util.Collection)} if you want to * override the existing values. * </p> * * @param recipients * The recipient domains and email addresses that the receipt rule applies to. If this field is not * specified, this rule will match all recipients under all verified domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withRecipients(String... recipients) { if (this.recipients == null) { setRecipients(new com.amazonaws.internal.SdkInternalList<String>(recipients.length)); } for (String ele : recipients) { this.recipients.add(ele); } return this; }
/** * <p> * The recipient domains and email addresses that the receipt rule applies * to. If this field is not specified, this rule will match all recipients * under all verified domains. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param recipients <p> * The recipient domains and email addresses that the receipt * rule applies to. If this field is not specified, this rule * will match all recipients under all verified domains. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withRecipients(java.util.Collection<String> recipients) { setRecipients(recipients); return this; }
/** * <p> * The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this * rule will match all recipients under all verified domains. * </p> * * @param recipients * The recipient domains and email addresses that the receipt rule applies to. If this field is not * specified, this rule will match all recipients under all verified domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withRecipients(java.util.Collection<String> recipients) { setRecipients(recipients); return this; }
/** * <p> * The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this * rule will match all recipients under all verified domains. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRecipients(java.util.Collection)} or {@link #withRecipients(java.util.Collection)} if you want to * override the existing values. * </p> * * @param recipients * The recipient domains and email addresses that the receipt rule applies to. If this field is not * specified, this rule will match all recipients under all verified domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withRecipients(String... recipients) { if (this.recipients == null) { setRecipients(new com.amazonaws.internal.SdkInternalList<String>(recipients.length)); } for (String ele : recipients) { this.recipients.add(ele); } return this; }