/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); return this; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(ReceiptAction... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<ReceiptAction>(actions.length)); } for (ReceiptAction ele : actions) { this.actions.add(ele); } return this; }
/** * <p> * An ordered list of actions to perform on messages that match at least one * of the recipient email addresses or domains specified in the receipt * rule. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param actions <p> * An ordered list of actions to perform on messages that match * at least one of the recipient email addresses or domains * specified in the receipt rule. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); return this; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); return this; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(ReceiptAction... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<ReceiptAction>(actions.length)); } for (ReceiptAction ele : actions) { this.actions.add(ele); } return this; }