Package software.xdev.brevo.model
Class CreateSmsCampaign
java.lang.Object
software.xdev.brevo.model.CreateSmsCampaign
CreateSmsCampaign
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanContent of the message.getName()Name of the campaignA recognizable prefix will ensure your audience knows who you are.Get recipientsUTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ).Name of the sender.Format of the message.Instructions to unsubscribe from future communications.inthashCode()organisationPrefix(String organisationPrefix) recipients(CreateSmsCampaignRecipients recipients) scheduledAt(String scheduledAt) voidsetContent(String content) voidvoidsetOrganisationPrefix(String organisationPrefix) voidsetRecipients(CreateSmsCampaignRecipients recipients) voidsetScheduledAt(String scheduledAt) voidvoidsetUnicodeEnabled(Boolean unicodeEnabled) voidsetUnsubscribeInstruction(String unsubscribeInstruction) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.unicodeEnabled(Boolean unicodeEnabled) unsubscribeInstruction(String unsubscribeInstruction)
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SENDER
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_RECIPIENTS
- See Also:
-
JSON_PROPERTY_SCHEDULED_AT
- See Also:
-
JSON_PROPERTY_UNICODE_ENABLED
- See Also:
-
JSON_PROPERTY_ORGANISATION_PREFIX
- See Also:
-
JSON_PROPERTY_UNSUBSCRIBE_INSTRUCTION
- See Also:
-
-
Constructor Details
-
CreateSmsCampaign
public CreateSmsCampaign()
-
-
Method Details
-
name
-
getName
Name of the campaign- Returns:
- name
-
setName
-
sender
-
getSender
Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters**- Returns:
- sender
-
setSender
-
content
-
getContent
Content of the message. The **maximum characters used per SMS is 160**, if used more than that, it will be counted as more than one SMS- Returns:
- content
-
setContent
-
recipients
-
getRecipients
Get recipients- Returns:
- recipients
-
setRecipients
-
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.**- Returns:
- scheduledAt
-
setScheduledAt
-
unicodeEnabled
-
getUnicodeEnabled
Format of the message. It indicates whether the content should be treated as unicode or not.- Returns:
- unicodeEnabled
-
setUnicodeEnabled
-
organisationPrefix
-
getOrganisationPrefix
A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.**- Returns:
- organisationPrefix
-
setOrganisationPrefix
-
unsubscribeInstruction
-
getUnsubscribeInstruction
Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.**- Returns:
- unsubscribeInstruction
-
setUnsubscribeInstruction
-
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
-