/** * Constructs a new Destination object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param toAddresses * The To: field(s) of the message. */ public Destination(java.util.List<String> toAddresses) { setToAddresses(toAddresses); }
/** * <p> * The To: field(s) of the message. * </p> * * @param toAddresses * The To: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withToAddresses(java.util.Collection<String> toAddresses) { setToAddresses(toAddresses); return this; }
/** * <p> * The To: field(s) of the message. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setToAddresses(java.util.Collection)} or {@link #withToAddresses(java.util.Collection)} if you want to * override the existing values. * </p> * * @param toAddresses * The To: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withToAddresses(String... toAddresses) { if (this.toAddresses == null) { setToAddresses(new com.amazonaws.internal.SdkInternalList<String>(toAddresses.length)); } for (String ele : toAddresses) { this.toAddresses.add(ele); } return this; }
/** * Constructs a new Destination object. Callers should use the setter or * fluent setter (with...) methods to initialize any additional object * members. * * @param toAddresses <p> * The To: field(s) of the message. * </p> */ public Destination(java.util.List<String> toAddresses) { setToAddresses(toAddresses); }
/** * <p> * The To: field(s) of the message. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param toAddresses <p> * The To: field(s) of the message. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Destination withToAddresses(java.util.Collection<String> toAddresses) { setToAddresses(toAddresses); return this; }
/** * Constructs a new Destination object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param toAddresses * The To: field(s) of the message. */ public Destination(java.util.List<String> toAddresses) { setToAddresses(toAddresses); }
/** * <p> * The To: field(s) of the message. * </p> * * @param toAddresses * The To: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withToAddresses(java.util.Collection<String> toAddresses) { setToAddresses(toAddresses); return this; }
/** * <p> * The To: field(s) of the message. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setToAddresses(java.util.Collection)} or {@link #withToAddresses(java.util.Collection)} if you want to * override the existing values. * </p> * * @param toAddresses * The To: field(s) of the message. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withToAddresses(String... toAddresses) { if (this.toAddresses == null) { setToAddresses(new com.amazonaws.internal.SdkInternalList<String>(toAddresses.length)); } for (String ele : toAddresses) { this.toAddresses.add(ele); } return this; }