/** * <p> * The BCC: field(s) of the message. * </p> * * @param bccAddresses * The BCC: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withBccAddresses(java.util.Collection<String> bccAddresses) { setBccAddresses(bccAddresses); return this; }
/** * <p> * The BCC: field(s) of the message. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBccAddresses(java.util.Collection)} or {@link #withBccAddresses(java.util.Collection)} if you want to * override the existing values. * </p> * * @param bccAddresses * The BCC: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withBccAddresses(String... bccAddresses) { if (this.bccAddresses == null) { setBccAddresses(new com.amazonaws.internal.SdkInternalList<String>(bccAddresses.length)); } for (String ele : bccAddresses) { this.bccAddresses.add(ele); } return this; }
/** * <p> * The BCC: field(s) of the message. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param bccAddresses <p> * The BCC: field(s) of the message. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Destination withBccAddresses(java.util.Collection<String> bccAddresses) { setBccAddresses(bccAddresses); return this; }
/** * <p> * The BCC: field(s) of the message. * </p> * * @param bccAddresses * The BCC: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withBccAddresses(java.util.Collection<String> bccAddresses) { setBccAddresses(bccAddresses); return this; }
/** * <p> * The BCC: field(s) of the message. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBccAddresses(java.util.Collection)} or {@link #withBccAddresses(java.util.Collection)} if you want to * override the existing values. * </p> * * @param bccAddresses * The BCC: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withBccAddresses(String... bccAddresses) { if (this.bccAddresses == null) { setBccAddresses(new com.amazonaws.internal.SdkInternalList<String>(bccAddresses.length)); } for (String ele : bccAddresses) { this.bccAddresses.add(ele); } return this; }
.ifPresent(cc -> destination.setBccAddresses(asList(cc)));