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 booleancanEqual(Object other)voidclose()booleanequals(Object o)Attachment[]getAttachments()String[]getBcc()String[]getCc()StringgetReplyTo()Contains singular replyTo address for an email.StringgetSubject()StringgetText()String[]getTo()inthashCode()voidsetAttachments(Attachment[] attachments)voidsetBcc(String[] bcc)voidsetCc(String[] cc)voidsetReplyTo(String replyTo)Contains singular replyTo address for an email.voidsetSubject(String subject)voidsetText(String text)voidsetTo(String[] to)StringtoString()EmailwithAttachments(Attachment[] attachments)EmailwithBcc(String[] bcc)EmailwithCc(String[] cc)EmailwithReplyTo(String replyTo)Contains singular replyTo address for an email.EmailwithSubject(String subject)EmailwithText(String text)EmailwithTo(String[] to)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
thisif an identical value is passed).
-
withTo
public Email withTo(String[] to)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCc
public Email withCc(String[] cc)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBcc
public Email withBcc(String[] bcc)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubject
public Email withSubject(String subject)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withText
public Email withText(String text)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAttachments
public Email withAttachments(Attachment[] attachments)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-