Class EmailRepresentation
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.email.EmailRepresentation
-
- All Implemented Interfaces:
ResourceRepresentation,org.svenson.DynamicProperties
public class EmailRepresentation extends AbstractExtensibleRepresentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmailRepresentation.EmailRepresentationBuilder
-
Constructor Summary
Constructors Constructor Description EmailRepresentation()EmailRepresentation(String replyTo, String[] to, String[] cc, String[] bcc, String subject, String text, Attachment[] attachments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmailRepresentation.EmailRepresentationBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)Attachment[]getAttachments()String[]getBcc()String[]getCc()StringgetReplyTo()StringgetSubject()StringgetText()String[]getTo()inthashCode()voidsetAttachments(Attachment[] attachments)voidsetBcc(String[] bcc)voidsetCc(String[] cc)voidsetReplyTo(String replyTo)voidsetSubject(String subject)voidsetText(String text)voidsetTo(String[] to)EmailtoEmail()StringtoString()EmailRepresentationwithAttachments(Attachment[] attachments)EmailRepresentationwithBcc(String[] bcc)EmailRepresentationwithCc(String[] cc)EmailRepresentationwithReplyTo(String replyTo)EmailRepresentationwithSubject(String subject)EmailRepresentationwithText(String text)EmailRepresentationwithTo(String[] to)-
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON
-
-
-
-
Method Detail
-
toEmail
public Email toEmail()
-
builder
public static EmailRepresentation.EmailRepresentationBuilder 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)
-
canEqual
protected boolean canEqual(Object other)
-
toString
public String toString()
- Overrides:
toStringin classBaseResourceRepresentation
-
withReplyTo
public EmailRepresentation withReplyTo(String replyTo)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTo
public EmailRepresentation withTo(String[] to)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCc
public EmailRepresentation withCc(String[] cc)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBcc
public EmailRepresentation withBcc(String[] bcc)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubject
public EmailRepresentation withSubject(String subject)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withText
public EmailRepresentation withText(String text)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAttachments
public EmailRepresentation withAttachments(Attachment[] attachments)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-