Class Email

java.lang.Object
com.cumulocity.model.email.Email
All Implemented Interfaces:
Closeable, AutoCloseable

public class Email extends Object implements Closeable
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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).