/** * <p> * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per * attachment. * </p> * * @param attachments * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB * per attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public AddAttachmentsToSetRequest withAttachments(java.util.Collection<Attachment> attachments) { setAttachments(attachments); return this; }
/** * <p> * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per * attachment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttachments(java.util.Collection)} or {@link #withAttachments(java.util.Collection)} if you want to * override the existing values. * </p> * * @param attachments * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB * per attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public AddAttachmentsToSetRequest withAttachments(Attachment... attachments) { if (this.attachments == null) { setAttachments(new com.amazonaws.internal.SdkInternalList<Attachment>(attachments.length)); } for (Attachment ele : attachments) { this.attachments.add(ele); } return this; }
/** * <p> * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per * attachment. * </p> * * @param attachments * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB * per attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public AddAttachmentsToSetRequest withAttachments(java.util.Collection<Attachment> attachments) { setAttachments(attachments); return this; }
/** * <p> * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per * attachment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttachments(java.util.Collection)} or {@link #withAttachments(java.util.Collection)} if you want to * override the existing values. * </p> * * @param attachments * One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB * per attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public AddAttachmentsToSetRequest withAttachments(Attachment... attachments) { if (this.attachments == null) { setAttachments(new com.amazonaws.internal.SdkInternalList<Attachment>(attachments.length)); } for (Attachment ele : attachments) { this.attachments.add(ele); } return this; }