Package com.gooddata.sdk.model.md
Class ScheduledMail
java.lang.Object
com.gooddata.sdk.model.md.AbstractObj
com.gooddata.sdk.model.md.ScheduledMail
- All Implemented Interfaces:
Obj,Queryable,Updatable,Serializable
A scheduled mail MD object. It represents a schedule on mail-sending of
exported dashboards and reports.
- See Also:
-
Field Summary
Fields inherited from class com.gooddata.sdk.model.md.AbstractObj
metaFields inherited from interface com.gooddata.sdk.model.md.Obj
CREATE_URI, CREATE_WITH_ID_URI, OBJ_URI, URI -
Constructor Summary
ConstructorsConstructorDescriptionScheduledMail(String title, String summary) Creates an almost empty instance of the object.ScheduledMail(String title, String summary, String recurrency, LocalDate startDate, String timeZone, Collection<String> toAddresses, Collection<String> bccAddresses, String subject, String body, List<Attachment> attachments) Creates full, safe mail schedule object. -
Method Summary
Modifier and TypeMethodDescriptionaddBccAddress(String bccAdd) addDashboardAttachment(String uri, Integer allTabs, String executionContext, String... tabs) addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, ExportFormat... formats) addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, String... formats) addToAddress(String toAdd) Collection<? extends Attachment>getBody()getWhen()setAttachments(List<Attachment> attachments) setBcc(Collection<String> bccAddresses) setRecurrency(String recurrency) setStartDate(LocalDate startDate) setSubject(String subject) setTimeZone(String timeZone) setTo(Collection<String> toAddresses) toString()Methods inherited from class com.gooddata.sdk.model.md.AbstractObj
getAuthor, getCategory, getContributor, getCreated, getFlags, getId, getIdentifier, getSummary, getTags, getTitle, getUpdated, getUri, isDeprecated, isLocked, isProduction, isSharedWithSomeone, isUnlisted, setCategory, setDeprecated, setFlags, setIdentifier, setLocked, setProduction, setSharedWithSomeone, setSummary, setTags, setTitle, setUnlisted, uris
-
Constructor Details
-
ScheduledMail
Creates an almost empty instance of the object. It's up to the user's responsibility to call all the necessary setters.- Parameters:
title- the title of the MD objectsummary- the summary of the MD object
-
ScheduledMail
public ScheduledMail(String title, String summary, String recurrency, LocalDate startDate, String timeZone, Collection<String> toAddresses, Collection<String> bccAddresses, String subject, String body, List<Attachment> attachments) Creates full, safe mail schedule object.- Parameters:
title- the title of the MD objectsummary- the summary of the MD objectrecurrency- schedule in format defined in schedulestartDate- schedule starting datetimeZone- time zone of the starting datetoAddresses- collection of email addresses to send the mail tobccAddresses- collection of blind copy addresses to send the mail tosubject- the subject of the scheduled mailbody- the text body of the scheduled mailattachments- reports and dashboards to send in the scheduled email
-
-
Method Details
-
getWhen
-
getToAddresses
-
getBccAddresses
-
getSubject
-
getBody
-
getAttachments
-
setRecurrency
-
setStartDate
-
setTimeZone
-
setTo
-
setBcc
-
setSubject
-
setBody
-
setAttachments
-
addToAddress
-
addBccAddress
-
addReportAttachment
public ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, String... formats) -
addReportAttachment
public ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, ExportFormat... formats) -
addDashboardAttachment
public ScheduledMail addDashboardAttachment(String uri, Integer allTabs, String executionContext, String... tabs) -
toString
- Overrides:
toStringin classAbstractObj
-