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