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 class
EmailRepresentation.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.EmailRepresentationBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Attachment[]
getAttachments()
String[]
getBcc()
String[]
getCc()
String
getReplyTo()
String
getSubject()
String
getText()
String[]
getTo()
int
hashCode()
void
setAttachments(Attachment[] attachments)
void
setBcc(String[] bcc)
void
setCc(String[] cc)
void
setReplyTo(String replyTo)
void
setSubject(String subject)
void
setText(String text)
void
setTo(String[] to)
Email
toEmail()
String
toString()
EmailRepresentation
withAttachments(Attachment[] attachments)
EmailRepresentation
withBcc(String[] bcc)
EmailRepresentation
withCc(String[] cc)
EmailRepresentation
withReplyTo(String replyTo)
EmailRepresentation
withSubject(String subject)
EmailRepresentation
withText(String text)
EmailRepresentation
withTo(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:
toString
in classBaseResourceRepresentation
-
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).
-
-