Class EmailRepresentation

All Implemented Interfaces:
ResourceRepresentation, org.svenson.DynamicProperties

public class EmailRepresentation extends AbstractExtensibleRepresentation
  • Constructor Details

  • Method Details

    • toEmail

      public Email toEmail()
    • builder

    • getReplyTo

      public String getReplyTo()
    • 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)
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class BaseResourceRepresentation
    • withReplyTo

      public EmailRepresentation withReplyTo(String replyTo)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTo

      public EmailRepresentation withTo(String[] to)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCc

      public EmailRepresentation withCc(String[] cc)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBcc

      public EmailRepresentation withBcc(String[] bcc)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSubject

      public EmailRepresentation withSubject(String subject)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withText

      public EmailRepresentation withText(String text)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAttachments

      public EmailRepresentation withAttachments(Attachment[] attachments)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).