Package io.vertx.mutiny.ext.mail
Class MailAttachment
java.lang.Object
io.vertx.mutiny.ext.mail.MailAttachment
- All Implemented Interfaces:
MutinyDelegate
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 MailAttachment
create()
static MailAttachment
create
(io.vertx.core.json.JsonObject json) static MailAttachment
create
(MailAttachment other) boolean
getData()
io.vertx.ext.mail.MailAttachment
getName()
int
getSize()
int
hashCode()
static MailAttachment
newInstance
(io.vertx.ext.mail.MailAttachment arg) setContentId
(String contentId) setContentType
(String contentType) setDescription
(String description) setDisposition
(String disposition) setHeaders
(MultiMap headers) setSize
(int size) setStream
(ReadStream<Buffer> stream) setStream
(Flow.Publisher<Buffer> stream) io.vertx.core.json.JsonObject
toJson()
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()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
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
- Returns:
- the data
-
setData
- Parameters:
data
- Buffer of bytes to be used at attachment- Returns:
- this to be able to use it fluently
-
getStream
- Returns:
- the data stream
-
setStream
- 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
- 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
-