Package software.xdev.brevo.model
Class CreateContact
java.lang.Object
software.xdev.brevo.model.CreateContact
CreateContact
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListIdsItem(Long listIdsItem) addSmtpBlacklistSenderItem(String smtpBlacklistSenderItem) attributes(Map<String, Object> attributes) emailBlacklisted(Boolean emailBlacklisted) booleanPass the set of attributes and their values.getEmail()Email address of the user.Set this field to blacklist the contact for emails (emailBlacklisted = true)getExtId()Pass your own Id to create a contact.Ids of the lists to add the contact toSet this field to blacklist the contact for SMS (smsBlacklisted = true)transactional email forbidden sender for contact.Facilitate to update the existing contact in the same request (updateEnabled = true)inthashCode()putAttributesItem(String key, Object attributesItem) voidsetAttributes(Map<String, Object> attributes) voidvoidsetEmailBlacklisted(Boolean emailBlacklisted) voidvoidsetListIds(List<Long> listIds) voidsetSmsBlacklisted(Boolean smsBlacklisted) voidsetSmtpBlacklistSender(List<String> smtpBlacklistSender) voidsetUpdateEnabled(Boolean updateEnabled) smsBlacklisted(Boolean smsBlacklisted) smtpBlacklistSender(List<String> smtpBlacklistSender) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.updateEnabled(Boolean updateEnabled)
-
Field Details
-
JSON_PROPERTY_EMAIL
- See Also:
-
JSON_PROPERTY_EXT_ID
- See Also:
-
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_EMAIL_BLACKLISTED
- See Also:
-
JSON_PROPERTY_SMS_BLACKLISTED
- See Also:
-
JSON_PROPERTY_LIST_IDS
- See Also:
-
JSON_PROPERTY_UPDATE_ENABLED
- See Also:
-
JSON_PROPERTY_SMTP_BLACKLIST_SENDER
- See Also:
-
-
Constructor Details
-
CreateContact
public CreateContact()
-
-
Method Details
-
email
-
getEmail
Email address of the user. **Mandatory if \"ext_id\" & \"SMS\" field is not passed.**- Returns:
-
setEmail
-
extId
-
getExtId
Pass your own Id to create a contact.- Returns:
- extId
-
setExtId
-
attributes
-
putAttributesItem
-
getAttributes
Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. Values that don't match the attribute type (e.g. text or string in a date attribute) will be ignored. **These attributes must be present in your Brevo account.**. For eg: **{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\", \"COUNTRIES\":[\"India\",\"China\"]}**- Returns:
- attributes
-
setAttributes
-
emailBlacklisted
-
getEmailBlacklisted
Set this field to blacklist the contact for emails (emailBlacklisted = true)- Returns:
- emailBlacklisted
-
setEmailBlacklisted
-
smsBlacklisted
-
getSmsBlacklisted
Set this field to blacklist the contact for SMS (smsBlacklisted = true)- Returns:
- smsBlacklisted
-
setSmsBlacklisted
-
listIds
-
addListIdsItem
-
getListIds
Ids of the lists to add the contact to- Returns:
- listIds
-
setListIds
-
updateEnabled
-
getUpdateEnabled
Facilitate to update the existing contact in the same request (updateEnabled = true)- Returns:
- updateEnabled
-
setUpdateEnabled
-
smtpBlacklistSender
-
addSmtpBlacklistSenderItem
-
getSmtpBlacklistSender
transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )- Returns:
- smtpBlacklistSender
-
setSmtpBlacklistSender
-
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
-