- java.lang.Object
-
- io.vertx.mutiny.ext.mail.MailAttachment
-
public class MailAttachment extends Object
Represent a mail attachment that can be used in a MailMessage. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.smallrye.mutiny.vertx.TypeArg<MailAttachment>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description MailAttachment(io.vertx.ext.mail.MailAttachment delegate)MailAttachment(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MailAttachmentaddHeader(String key, String value)static MailAttachmentcreate()static MailAttachmentcreate(io.vertx.core.json.JsonObject json)static MailAttachmentcreate(MailAttachment other)booleanequals(Object o)StringgetContentId()StringgetContentType()io.vertx.mutiny.core.buffer.BuffergetData()io.vertx.ext.mail.MailAttachmentgetDelegate()StringgetDescription()StringgetDisposition()io.vertx.mutiny.core.MultiMapgetHeaders()StringgetName()intgetSize()io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer>getStream()inthashCode()static MailAttachmentnewInstance(io.vertx.ext.mail.MailAttachment arg)MailAttachmentsetContentId(String contentId)MailAttachmentsetContentType(String contentType)MailAttachmentsetData(io.vertx.mutiny.core.buffer.Buffer data)MailAttachmentsetDescription(String description)MailAttachmentsetDisposition(String disposition)MailAttachmentsetHeaders(io.vertx.mutiny.core.MultiMap headers)MailAttachmentsetName(String name)MailAttachmentsetSize(int size)MailAttachmentsetStream(io.vertx.mutiny.core.streams.ReadStream<io.vertx.mutiny.core.buffer.Buffer> stream)MailAttachmentsetStream(Flow.Publisher<io.vertx.mutiny.core.buffer.Buffer> stream)io.vertx.core.json.JsonObjecttoJson()StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.smallrye.mutiny.vertx.TypeArg<MailAttachment> __TYPE_ARG
-
-
Constructor Detail
-
MailAttachment
public MailAttachment(io.vertx.ext.mail.MailAttachment delegate)
-
MailAttachment
public MailAttachment(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.mail.MailAttachment getDelegate()
-
create
public static MailAttachment create()
- Returns:
-
create
public static MailAttachment create(io.vertx.core.json.JsonObject json)
- Parameters:
json- object to be copied- Returns:
-
create
public static MailAttachment create(MailAttachment other)
- Parameters:
other- object to be copied- Returns:
-
getData
public io.vertx.mutiny.core.buffer.Buffer getData()
- Returns:
- the data
-
setData
public MailAttachment setData(io.vertx.mutiny.core.buffer.Buffer data)
- 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
public MailAttachment setStream(Flow.Publisher<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
-
getSize
public int getSize()
- Returns:
- the size of the attachment
-
setSize
public MailAttachment setSize(int size)
- Parameters:
size- the size of the attachment- Returns:
- this to be able to use it fluently
-
getName
public String getName()
- Returns:
- the name
-
setName
public MailAttachment setName(String 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
public String getContentType()
- Returns:
- the contentType
-
setContentType
public MailAttachment setContentType(String contentType)
- Parameters:
contentType- the contentType- Returns:
- this to be able to use it fluently
-
getDisposition
public String getDisposition()
- Returns:
- the disposition
-
setDisposition
public MailAttachment setDisposition(String disposition)
- Parameters:
disposition- the disposition- Returns:
- this to be able to use it fluently
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public MailAttachment setDescription(String description)
- Parameters:
description- the description- Returns:
- this to be able to use it fluently
-
getContentId
public String getContentId()
- Returns:
- the content id
-
setContentId
public MailAttachment setContentId(String contentId)
- Parameters:
contentId- the content id- Returns:
- this to be able to use it fluently
-
addHeader
public MailAttachment addHeader(String key, String value)
- 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
public MailAttachment setHeaders(io.vertx.mutiny.core.MultiMap headers)
- 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
public static MailAttachment newInstance(io.vertx.ext.mail.MailAttachment arg)
-
-