java.lang.Object
io.vertx.mutiny.ext.mail.MailAttachment
Represent a mail attachment that can be used in a MailMessage.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailAttachment(io.vertx.ext.mail.MailAttachment delegate) MailAttachment(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MailAttachmentcreate()static MailAttachmentcreate(io.vertx.core.json.JsonObject json) static MailAttachmentcreate(MailAttachment other) booleanio.vertx.mutiny.core.buffer.BuffergetData()io.vertx.ext.mail.MailAttachmentio.vertx.mutiny.core.MultiMapgetName()intgetSize()io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> inthashCode()static MailAttachmentnewInstance(io.vertx.ext.mail.MailAttachment arg) setContentId(String contentId) setContentType(String contentType) setData(io.vertx.mutiny.core.buffer.Buffer data) setDescription(String description) setDisposition(String disposition) setHeaders(io.vertx.mutiny.core.MultiMap headers) setSize(int size) setStream(io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream) setStream(Flow.Publisher<io.vertx.mutiny.core.buffer.Buffer> stream) io.vertx.core.json.JsonObjecttoJson()toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MailAttachment
public MailAttachment(io.vertx.ext.mail.MailAttachment delegate) -
MailAttachment
-
-
Method Details
-
getDelegate
public io.vertx.ext.mail.MailAttachment getDelegate() -
toString
-
equals
-
hashCode
public int hashCode() -
create
- Returns:
-
create
- Parameters:
json- object to be copied- Returns:
-
create
- Parameters:
other- object to be copied- Returns:
-
getData
public io.vertx.mutiny.core.buffer.Buffer getData()- Returns:
- the data
-
setData
- Parameters:
data- Buffer of bytes to be used at attachment- Returns:
- this to be able to use it fluently
-
getStream
public io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> getStream()- Returns:
- the data stream
-
setStream
public MailAttachment setStream(io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream) - Parameters:
stream- data stream to be used at attachment- Returns:
- this to be able to use it fluently
-
setStream
- Parameters:
stream- data stream to be used at attachment- Returns:
- this to be able to use it fluently
-
getSize
public int getSize()- Returns:
- the size of the attachment
-
setSize
- Parameters:
size- the size of the attachment- Returns:
- this to be able to use it fluently
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- name of the attachment file- Returns:
- this to be able to use it fluently
name is the descriptive filename that will be put into the mail i.e. usually a local filename without path this can be set to "" to omit the filename attribute
-
getContentType
- Returns:
- the contentType
-
setContentType
- Parameters:
contentType- the contentType- Returns:
- this to be able to use it fluently
-
getDisposition
- Returns:
- the disposition
-
setDisposition
- Parameters:
disposition- the disposition- Returns:
- this to be able to use it fluently
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description- Returns:
- this to be able to use it fluently
-
getContentId
- Returns:
- the content id
-
setContentId
- Parameters:
contentId- the content id- Returns:
- this to be able to use it fluently
-
addHeader
- Parameters:
key- the header keyvalue- the header value- Returns:
- a reference to this, so the API can be used fluently
-
getHeaders
public io.vertx.mutiny.core.MultiMap getHeaders()- Returns:
- the headers
-
setHeaders
- Parameters:
headers- the headers to be added- Returns:
- this to be able to use it fluently
-
toJson
public io.vertx.core.json.JsonObject toJson()- Returns:
- the JSON object
-
newInstance
-