/** * <p> * Information about the attachments to the case communication. * </p> * * @param attachmentSet * Information about the attachments to the case communication. * @return Returns a reference to this object so that method calls can be chained together. */ public Communication withAttachmentSet(java.util.Collection<AttachmentDetails> attachmentSet) { setAttachmentSet(attachmentSet); return this; }
/** * <p> * Information about the attachments to the case communication. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttachmentSet(java.util.Collection)} or {@link #withAttachmentSet(java.util.Collection)} if you want * to override the existing values. * </p> * * @param attachmentSet * Information about the attachments to the case communication. * @return Returns a reference to this object so that method calls can be chained together. */ public Communication withAttachmentSet(AttachmentDetails... attachmentSet) { if (this.attachmentSet == null) { setAttachmentSet(new com.amazonaws.internal.SdkInternalList<AttachmentDetails>(attachmentSet.length)); } for (AttachmentDetails ele : attachmentSet) { this.attachmentSet.add(ele); } return this; }
context.nextToken(); communication .setAttachmentSet(new ListUnmarshaller<AttachmentDetails>(AttachmentDetailsJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * Information about the attachments to the case communication. * </p> * * @param attachmentSet * Information about the attachments to the case communication. * @return Returns a reference to this object so that method calls can be chained together. */ public Communication withAttachmentSet(java.util.Collection<AttachmentDetails> attachmentSet) { setAttachmentSet(attachmentSet); return this; }
/** * <p> * Information about the attachments to the case communication. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttachmentSet(java.util.Collection)} or {@link #withAttachmentSet(java.util.Collection)} if you want * to override the existing values. * </p> * * @param attachmentSet * Information about the attachments to the case communication. * @return Returns a reference to this object so that method calls can be chained together. */ public Communication withAttachmentSet(AttachmentDetails... attachmentSet) { if (this.attachmentSet == null) { setAttachmentSet(new com.amazonaws.internal.SdkInternalList<AttachmentDetails>(attachmentSet.length)); } for (AttachmentDetails ele : attachmentSet) { this.attachmentSet.add(ele); } return this; }
context.nextToken(); communication .setAttachmentSet(new ListUnmarshaller<AttachmentDetails>(AttachmentDetailsJsonUnmarshaller.getInstance()).unmarshall(context));