Package io.vertx.mutiny.ext.mail
Class MailAttachment
java.lang.Object
io.vertx.mutiny.ext.mail.MailAttachment
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface.- See Also:
-
MailAttachment
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailAttachment(io.vertx.ext.mail.MailAttachment delegate) Create a new instance ofMailAttachmentdelegating to the given (non-null) instance ofMailAttachment.MailAttachment(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionAdd an header to this attachment.static MailAttachmentcreate()construct an empty MailAttachment object that can be filled with the settersstatic MailAttachmentcreate(io.vertx.core.json.JsonObject json) create a MailAttachment object from a JsonObject representationstatic MailAttachmentcreate(MailAttachment other) create a copy of a MailAttachment objectbooleanget the Content-ID fieldget the Content-Typeio.vertx.core.buffer.BuffergetData()get the dataio.vertx.ext.mail.MailAttachmentGet the delegate instance.get the description fieldget the disposition fieldio.vertx.core.MultiMapGet the headers to be added for this attachment.getName()get the nameintgetSize()Gets the size of the attachment.ReadStream<io.vertx.core.buffer.Buffer>Gets the data stream.inthashCode()static MailAttachmentnewInstance(io.vertx.ext.mail.MailAttachment delegate) Creates a new instance of theMailAttachment.setContentId(String contentId) set the Content-ID field to be used in the attachmentsetContentType(String contentType) set the Content-TypesetData(io.vertx.core.buffer.Buffer data) set the datasetDescription(String description) set the description field to be used in the attachmentsetDisposition(String disposition) set the disposition field to be used in the attachmentsetHeaders(io.vertx.core.MultiMap headers) Set the headers to be added for this attachment.set the namesetSize(int size) Sets the size of the attachment.setStream(ReadStream<io.vertx.core.buffer.Buffer> stream) Sets the data stream.setStream(Flow.Publisher<io.vertx.core.buffer.Buffer> stream) Sets the data stream.io.vertx.core.json.JsonObjecttoJson()convert this object to JSON representationtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MailAttachment
public MailAttachment(io.vertx.ext.mail.MailAttachment delegate) Create a new instance ofMailAttachmentdelegating to the given (non-null) instance ofMailAttachment. -
MailAttachment
-
-
Method Details
-
getDelegate
public io.vertx.ext.mail.MailAttachment getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
construct an empty MailAttachment object that can be filled with the setters -
create
create a MailAttachment object from a JsonObject representation- Parameters:
json- object to be copied
-
create
create a copy of a MailAttachment object- Parameters:
other- object to be copied
-
getData
public io.vertx.core.buffer.Buffer getData()get the data- Returns:
- the data
-
setData
set the data- Parameters:
data- Buffer of bytes to be used at attachment- Returns:
- this to be able to use it fluently
-
getStream
Gets the data stream.- Returns:
- the data stream
-
setStream
Sets the data stream.- Parameters:
stream- data stream to be used at attachment- Returns:
- this to be able to use it fluently
-
setStream
Sets the data stream.- Parameters:
stream- data stream to be used at attachment- Returns:
- this to be able to use it fluently
-
getSize
public int getSize()Gets the size of the attachment.- Returns:
- the size of the attachment
-
setSize
Sets the size of the attachment.It is needed when using ReadStream for the MailAttachement.
- Parameters:
size- the size of the attachment- Returns:
- this to be able to use it fluently
-
getName
get the name- Returns:
- the name
-
setName
set the name- 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
get the Content-Type- Returns:
- the contentType
-
setContentType
set the Content-Type- Parameters:
contentType- the contentType- Returns:
- this to be able to use it fluently
-
getDisposition
get the disposition field- Returns:
- the disposition
-
setDisposition
set the disposition field to be used in the attachment- Parameters:
disposition- the disposition- Returns:
- this to be able to use it fluently
-
getDescription
get the description field- Returns:
- the description
-
setDescription
set the description field to be used in the attachment- Parameters:
description- the description- Returns:
- this to be able to use it fluently
-
getContentId
get the Content-ID field- Returns:
- the content id
-
setContentId
set the Content-ID field to be used in the attachment- Parameters:
contentId- the content id- Returns:
- this to be able to use it fluently
-
addHeader
Add an header to this attachment.- Parameters:
key- the header keyvalue- the header value- Returns:
- a reference to this, so the API can be used fluently
-
getHeaders
public io.vertx.core.MultiMap getHeaders()Get the headers to be added for this attachment.- Returns:
- the headers
-
setHeaders
Set the headers to be added for this attachment.- Parameters:
headers- the headers to be added- Returns:
- this to be able to use it fluently
-
toJson
public io.vertx.core.json.JsonObject toJson()convert this object to JSON representation- Returns:
- the JSON object
-
newInstance
Creates a new instance of theMailAttachment. -
hashCode
public int hashCode() -
equals
-
toString
-