Class EmailMessage


  • public abstract class EmailMessage
    extends java.lang.Object
    Value class representing the content and metadata of an email.
    • Constructor Summary

      Constructors 
      Constructor Description
      EmailMessage()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.util.Optional<EmailMessage.Attachment> attachment()  
      abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> bccs()  
      abstract java.lang.String body()  
      abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> ccs()  
      abstract java.util.Optional<com.google.common.net.MediaType> contentType()  
      static EmailMessage create​(java.lang.String subject, java.lang.String body, javax.mail.internet.InternetAddress recipient, javax.mail.internet.InternetAddress from)  
      abstract javax.mail.internet.InternetAddress from()  
      static EmailMessage.Builder newBuilder()  
      abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> recipients()  
      abstract java.lang.String subject()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmailMessage

        public EmailMessage()
    • Method Detail

      • create

        public static EmailMessage create​(java.lang.String subject,
                                          java.lang.String body,
                                          javax.mail.internet.InternetAddress recipient,
                                          javax.mail.internet.InternetAddress from)
      • subject

        public abstract java.lang.String subject()
      • body

        public abstract java.lang.String body()
      • recipients

        public abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> recipients()
      • from

        public abstract javax.mail.internet.InternetAddress from()
      • ccs

        public abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> ccs()
      • bccs

        public abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> bccs()
      • contentType

        public abstract java.util.Optional<com.google.common.net.MediaType> contentType()