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
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEmailRepresentation
(String replyTo, String[] to, String[] cc, String[] bcc, String subject, String text, Attachment[] attachments) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
String[]
getBcc()
String[]
getCc()
getText()
String[]
getTo()
int
hashCode()
void
setAttachments
(Attachment[] attachments) void
void
void
setReplyTo
(String replyTo) void
setSubject
(String subject) void
void
toEmail()
toString()
withAttachments
(Attachment[] attachments) withReplyTo
(String replyTo) withSubject
(String subject) 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
-
Constructor Details
-
EmailRepresentation
public EmailRepresentation() -
EmailRepresentation
-
-
Method Details
-
toEmail
-
builder
-
getReplyTo
-
getTo
-
getCc
-
getBcc
-
getSubject
-
getText
-
getAttachments
-
setReplyTo
-
setTo
-
setCc
-
setBcc
-
setSubject
-
setText
-
setAttachments
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classBaseResourceRepresentation
-
withReplyTo
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTo
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withCc
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withBcc
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withSubject
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withText
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withAttachments
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-