Package com.cumulocity.model.email
Class Email
- java.lang.Object
-
- com.cumulocity.model.email.Email
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class Email extends Object implements Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
void
close()
boolean
equals(Object o)
Attachment[]
getAttachments()
String[]
getBcc()
String[]
getCc()
String
getReplyTo()
Contains singular replyTo address for an email.String
getSubject()
String
getText()
String[]
getTo()
int
hashCode()
void
setAttachments(Attachment[] attachments)
void
setBcc(String[] bcc)
void
setCc(String[] cc)
void
setReplyTo(String replyTo)
Contains singular replyTo address for an email.void
setSubject(String subject)
void
setText(String text)
void
setTo(String[] to)
String
toString()
Email
withAttachments(Attachment[] attachments)
Email
withBcc(String[] bcc)
Email
withCc(String[] cc)
Email
withReplyTo(String replyTo)
Contains singular replyTo address for an email.Email
withSubject(String subject)
Email
withText(String text)
Email
withTo(String[] to)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getReplyTo
public String 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
public String[] getTo()
-
getCc
public String[] getCc()
-
getBcc
public String[] getBcc()
-
getSubject
public String getSubject()
-
getText
public String getText()
-
getAttachments
public Attachment[] getAttachments()
-
setReplyTo
public void setReplyTo(String replyTo)
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
public void setTo(String[] to)
-
setCc
public void setCc(String[] cc)
-
setBcc
public void setBcc(String[] bcc)
-
setSubject
public void setSubject(String subject)
-
setText
public void setText(String text)
-
setAttachments
public void setAttachments(Attachment[] attachments)
-
canEqual
protected boolean canEqual(Object other)
-
withReplyTo
public Email withReplyTo(String replyTo)
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
public Email withTo(String[] to)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withCc
public Email withCc(String[] cc)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withBcc
public Email withBcc(String[] bcc)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withSubject
public Email withSubject(String subject)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withText
public Email withText(String text)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withAttachments
public Email withAttachments(Attachment[] attachments)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
-