Package com.cumulocity.model.email
Class Email
java.lang.Object
com.cumulocity.model.email.Email
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
close()
boolean
String[]
getBcc()
String[]
getCc()
Contains singular replyTo address for an email.getText()
String[]
getTo()
int
hashCode()
void
setAttachments
(Attachment[] attachments) void
void
void
setReplyTo
(String replyTo) Contains singular replyTo address for an email.void
setSubject
(String subject) void
void
toString()
withAttachments
(Attachment[] attachments) withReplyTo
(String replyTo) Contains singular replyTo address for an email.withSubject
(String subject)
-
Constructor Details
-
Email
-
Email
public Email() -
Email
-
-
Method Details
-
toString
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getReplyTo
Contains singular replyTo address for an email. As long as the sending email implementation will be using SimpleMailMessage, which enforces this field to be a String, this cannot be an array. Small info regarding this: https://github.com/spring-projects/spring-framework/issues/4885#issuecomment-453285522 -
getTo
-
getCc
-
getBcc
-
getSubject
-
getText
-
getAttachments
-
setReplyTo
Contains singular replyTo address for an email. As long as the sending email implementation will be using SimpleMailMessage, which enforces this field to be a String, this cannot be an array. Small info regarding this: https://github.com/spring-projects/spring-framework/issues/4885#issuecomment-453285522 -
setTo
-
setCc
-
setBcc
-
setSubject
-
setText
-
setAttachments
-
equals
-
canEqual
-
hashCode
public int hashCode() -
withReplyTo
Contains singular replyTo address for an email. As long as the sending email implementation will be using SimpleMailMessage, which enforces this field to be a String, this cannot be an array. Small info regarding this: https://github.com/spring-projects/spring-framework/issues/4885#issuecomment-453285522- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTo
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withCc
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withBcc
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withSubject
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withText
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withAttachments
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-