All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.kotlin.ext.mail.MailAttachment.kt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR3
Show newest version
package io.vertx.kotlin.ext.mail

import io.vertx.ext.mail.MailAttachment

/**
 * A function providing a DSL for building [io.vertx.ext.mail.MailAttachment] objects.
 *
 * Represent a mail attachment that can be used in a MailMessage.
 *
 * @param contentId  set the Content-ID field to be used in the attachment
 * @param contentType  set the Content-Type
 * @param data  set the data
 * @param description  set the description field to be used in the attachment
 * @param disposition  set the disposition field to be used in the attachment
 * @param headers  Add an header to this attachment.
 * @param name  set the name
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.ext.mail.MailAttachment original] using Vert.x codegen. */ fun MailAttachment( contentId: String? = null, contentType: String? = null, data: io.vertx.core.buffer.Buffer? = null, description: String? = null, disposition: String? = null, headers: Map? = null, name: String? = null): MailAttachment = io.vertx.ext.mail.MailAttachment().apply { if (contentId != null) { this.setContentId(contentId) } if (contentType != null) { this.setContentType(contentType) } if (data != null) { this.setData(data) } if (description != null) { this.setDescription(description) } if (disposition != null) { this.setDisposition(disposition) } if (headers != null) { for (item in headers) { this.addHeader(item.key, item.value) } } if (name != null) { this.setName(name) } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy