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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEmailRepresentation(String replyTo, String[] to, String[] cc, String[] bcc, String subject, String text, Attachment[] attachments) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanString[]getBcc()String[]getCc()getText()String[]getTo()inthashCode()voidsetAttachments(Attachment[] attachments) voidvoidvoidsetReplyTo(String replyTo) voidsetSubject(String subject) voidvoidtoEmail()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, setPropertyMethods 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:
toStringin classBaseResourceRepresentation
-
withReplyTo
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTo
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCc
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBcc
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubject
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withText
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAttachments
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-