Package software.xdev.brevo.model
Class UpdateEmailCampaign
java.lang.Object
software.xdev.brevo.model.UpdateEmailCampaign
UpdateEmailCampaign
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumChoose the metrics that will determinate the winning version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentUrl(String attachmentUrl) emailExpirationDate(UpdateEmailCampaignEmailExpirationDate emailExpirationDate) booleanStatus of A/B Test. abTesting = false means it is disabled & abTesting = true means it is enabled.Absolute url of the attachment (no local file).Get emailExpirationDateFooter of the email campaignHeader of the email campaignBody of the message (HTML version).Url which contents the body of the email message.Set a percentage increase rate for warming up your ip.Set an initial quota greater than 1 for warming up your ip.Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email.**Available for dedicated ip clients**.Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaigngetName()Name of the campaignPass the set of attributes to customize the type classic campaign.Preview text or preheader of the email campaignGet recipients**FOR TRIGGER ONLY !Email on which campaign recipients will be able to reply toUTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ).Set this to true if you want to send your campaign at best time.Get senderAdd the size of your test groups.Subject of the campaignSubject A of the campaign.Subject B of the campaign.getTag()Tag of the campaignTo personalize the **To** Field.Enter an unsubscription page id.**Mandatory if templateId is used containing the {{ update_profile }} tag**.Customize the utm_campaign value.Choose the metrics that will determinate the winning version.Choose the duration of the test in hours.inthashCode()htmlContent(String htmlContent) increaseRate(Long increaseRate) initialQuota(Long initialQuota) inlineImageActivation(Boolean inlineImageActivation) ipWarmupEnable(Boolean ipWarmupEnable) mirrorActive(Boolean mirrorActive) previewText(String previewText) putParamsItem(String key, Object paramsItem) recipients(UpdateEmailCampaignRecipients recipients) scheduledAt(String scheduledAt) sendAtBestTime(Boolean sendAtBestTime) sender(UpdateEmailCampaignSender sender) voidsetAbTesting(Boolean abTesting) voidsetAttachmentUrl(String attachmentUrl) voidsetEmailExpirationDate(UpdateEmailCampaignEmailExpirationDate emailExpirationDate) voidvoidvoidsetHtmlContent(String htmlContent) voidsetHtmlUrl(String htmlUrl) voidsetIncreaseRate(Long increaseRate) voidsetInitialQuota(Long initialQuota) voidsetInlineImageActivation(Boolean inlineImageActivation) voidsetIpWarmupEnable(Boolean ipWarmupEnable) voidsetMirrorActive(Boolean mirrorActive) voidvoidvoidsetPreviewText(String previewText) voidsetRecipients(UpdateEmailCampaignRecipients recipients) voidsetRecurring(Boolean recurring) voidsetReplyTo(String replyTo) voidsetScheduledAt(String scheduledAt) voidsetSendAtBestTime(Boolean sendAtBestTime) voidsetSender(UpdateEmailCampaignSender sender) voidsetSplitRule(Long splitRule) voidsetSubject(String subject) voidsetSubjectA(String subjectA) voidsetSubjectB(String subjectB) voidvoidsetToField(String toField) voidsetUnsubscriptionPageId(String unsubscriptionPageId) voidsetUpdateFormId(String updateFormId) voidsetUtmCampaign(String utmCampaign) voidsetWinnerCriteria(UpdateEmailCampaign.WinnerCriteriaEnum winnerCriteria) voidsetWinnerDelay(Long winnerDelay) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.unsubscriptionPageId(String unsubscriptionPageId) updateFormId(String updateFormId) utmCampaign(String utmCampaign) winnerCriteria(UpdateEmailCampaign.WinnerCriteriaEnum winnerCriteria) winnerDelay(Long winnerDelay)
-
Field Details
-
JSON_PROPERTY_TAG
- See Also:
-
JSON_PROPERTY_SENDER
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_HTML_CONTENT
- See Also:
-
JSON_PROPERTY_HTML_URL
- See Also:
-
JSON_PROPERTY_SCHEDULED_AT
- See Also:
-
JSON_PROPERTY_SUBJECT
- See Also:
-
JSON_PROPERTY_PREVIEW_TEXT
- See Also:
-
JSON_PROPERTY_REPLY_TO
- See Also:
-
JSON_PROPERTY_TO_FIELD
- See Also:
-
JSON_PROPERTY_RECIPIENTS
- See Also:
-
JSON_PROPERTY_ATTACHMENT_URL
- See Also:
-
JSON_PROPERTY_INLINE_IMAGE_ACTIVATION
- See Also:
-
JSON_PROPERTY_MIRROR_ACTIVE
- See Also:
-
JSON_PROPERTY_RECURRING
- See Also:
-
JSON_PROPERTY_FOOTER
- See Also:
-
JSON_PROPERTY_HEADER
- See Also:
-
JSON_PROPERTY_UTM_CAMPAIGN
- See Also:
-
JSON_PROPERTY_PARAMS
- See Also:
-
JSON_PROPERTY_SEND_AT_BEST_TIME
- See Also:
-
JSON_PROPERTY_AB_TESTING
- See Also:
-
JSON_PROPERTY_SUBJECT_A
- See Also:
-
JSON_PROPERTY_SUBJECT_B
- See Also:
-
JSON_PROPERTY_SPLIT_RULE
- See Also:
-
JSON_PROPERTY_WINNER_CRITERIA
- See Also:
-
JSON_PROPERTY_WINNER_DELAY
- See Also:
-
JSON_PROPERTY_IP_WARMUP_ENABLE
- See Also:
-
JSON_PROPERTY_INITIAL_QUOTA
- See Also:
-
JSON_PROPERTY_INCREASE_RATE
- See Also:
-
JSON_PROPERTY_UNSUBSCRIPTION_PAGE_ID
- See Also:
-
JSON_PROPERTY_UPDATE_FORM_ID
- See Also:
-
JSON_PROPERTY_EMAIL_EXPIRATION_DATE
- See Also:
-
-
Constructor Details
-
UpdateEmailCampaign
public UpdateEmailCampaign()
-
-
Method Details
-
tag
-
getTag
Tag of the campaign- Returns:
- tag
-
setTag
-
sender
-
getSender
Get sender- Returns:
- sender
-
setSender
-
name
-
getName
Name of the campaign- Returns:
- name
-
setName
-
htmlContent
-
getHtmlContent
Body of the message (HTML version). If the campaign is designed using Drag & Drop editor via HTML content, then the design page will not have Drag & Drop editor access for that campaign. **REQUIRED if htmlUrl is empty**- Returns:
- htmlContent
-
setHtmlContent
-
htmlUrl
-
getHtmlUrl
Url which contents the body of the email message. **REQUIRED if htmlContent is empty**- Returns:
- htmlUrl
-
setHtmlUrl
-
scheduledAt
-
getScheduledAt
UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part).- Returns:
- scheduledAt
-
setScheduledAt
-
subject
-
getSubject
Subject of the campaign- Returns:
- subject
-
setSubject
-
previewText
-
getPreviewText
Preview text or preheader of the email campaign- Returns:
- previewText
-
setPreviewText
-
replyTo
-
getReplyTo
Email on which campaign recipients will be able to reply to- Returns:
- replyTo
-
setReplyTo
-
toField
-
getToField
To personalize the **To** Field. If you want to include the first name and last name of your recipient, add **{FNAME} {LNAME}**. These contact attributes must already exist in your Brevo account. If input parameter **params** used please use **{{contact.FNAME}} {{contact.LNAME}}** for personalization- Returns:
- toField
-
setToField
-
recipients
-
getRecipients
Get recipients- Returns:
- recipients
-
setRecipients
-
attachmentUrl
-
getAttachmentUrl
Absolute url of the attachment (no local file). Extension allowed: #### xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps'- Returns:
- attachmentUrl
-
setAttachmentUrl
-
inlineImageActivation
-
getInlineImageActivation
Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. You cannot send a campaign of more than **4MB** with images embedded in the email. Campaigns with the images embedded in the email _must be sent to less than 5000 contacts_.- Returns:
- inlineImageActivation
-
setInlineImageActivation
-
mirrorActive
-
getMirrorActive
Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign- Returns:
- mirrorActive
-
setMirrorActive
-
recurring
-
getRecurring
**FOR TRIGGER ONLY !** Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times- Returns:
- recurring
-
setRecurring
-
header
-
getHeader
Header of the email campaign- Returns:
- header
-
setHeader
-
utmCampaign
-
getUtmCampaign
Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed- Returns:
- utmCampaign
-
setUtmCampaign
-
params
-
putParamsItem
-
getParams
Pass the set of attributes to customize the type classic campaign. For example: **{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}**. Only available if **type** is **classic**. It's considered only if campaign is in _New Template Language format_. The New Template Language is dependent on the values of **subject, htmlContent/htmlUrl, sender.name & toField**- Returns:
- params
-
setParams
-
sendAtBestTime
-
getSendAtBestTime
Set this to true if you want to send your campaign at best time. Note:- **if true, warmup ip will be disabled.**- Returns:
- sendAtBestTime
-
setSendAtBestTime
-
abTesting
-
getAbTesting
Status of A/B Test. abTesting = false means it is disabled & abTesting = true means it is enabled. **subjectA, subjectB, splitRule, winnerCriteria & winnerDelay** will be considered when abTesting is set to true. subjectA & subjectB are mandatory together & subject if passed is ignored. **Can be set to true only if sendAtBestTime is false**. You will be able to set up two subject lines for your campaign and send them to a random sample of your total recipients. Half of the test group will receive version A, and the other half will receive version B- Returns:
- abTesting
-
setAbTesting
-
subjectA
-
getSubjectA
Subject A of the campaign. **Mandatory if abTesting = true**. subjectA & subjectB should have unique value- Returns:
- subjectA
-
setSubjectA
-
subjectB
-
getSubjectB
Subject B of the campaign. **Mandatory if abTesting = true**. subjectA & subjectB should have unique value- Returns:
- subjectB
-
setSubjectB
-
splitRule
-
getSplitRule
Add the size of your test groups. **Mandatory if abTesting = true & 'recipients' is passed**. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else minimum: 1 maximum: 50- Returns:
- splitRule
-
setSplitRule
-
winnerCriteria
public UpdateEmailCampaign winnerCriteria(@Nullable UpdateEmailCampaign.WinnerCriteriaEnum winnerCriteria) -
getWinnerCriteria
Choose the metrics that will determinate the winning version. **Mandatory if _splitRule_ >= 1 and < 50**. If splitRule = 50, `winnerCriteria` is ignored if passed- Returns:
- winnerCriteria
-
setWinnerCriteria
-
winnerDelay
-
getWinnerDelay
Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. **Mandatory if _splitRule_ >= 1 and < 50**. If splitRule = 50, `winnerDelay` is ignored if passed minimum: 1 maximum: 168- Returns:
- winnerDelay
-
setWinnerDelay
-
ipWarmupEnable
-
getIpWarmupEnable
**Available for dedicated ip clients**. Set this to true if you wish to warm up your ip.- Returns:
- ipWarmupEnable
-
setIpWarmupEnable
-
initialQuota
-
getInitialQuota
Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000.- Returns:
- initialQuota
-
setInitialQuota
-
increaseRate
-
getIncreaseRate
Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. minimum: 0 maximum: 100- Returns:
- increaseRate
-
setIncreaseRate
-
unsubscriptionPageId
-
getUnsubscriptionPageId
Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page.- Returns:
- unsubscriptionPageId
-
setUnsubscriptionPageId
-
updateFormId
-
getUpdateFormId
**Mandatory if templateId is used containing the {{ update_profile }} tag**. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form.- Returns:
- updateFormId
-
setUpdateFormId
-
emailExpirationDate
public UpdateEmailCampaign emailExpirationDate(@Nullable UpdateEmailCampaignEmailExpirationDate emailExpirationDate) -
getEmailExpirationDate
Get emailExpirationDate- Returns:
- emailExpirationDate
-
setEmailExpirationDate
public void setEmailExpirationDate(@Nullable UpdateEmailCampaignEmailExpirationDate emailExpirationDate) -
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-