Package software.xdev.brevo.model
Class RequestContactImport
java.lang.Object
software.xdev.brevo.model.RequestContactImport
RequestContactImport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddJsonBodyItem(RequestContactImportJsonBodyInner jsonBodyItem) addListIdsItem(Long listIdsItem) disableNotification(Boolean disableNotification) emailBlacklist(Boolean emailBlacklist) emptyContactsAttributes(Boolean emptyContactsAttributes) booleanTo disable email notificationTo blacklist all the contacts for emailTo facilitate the choice to erase any attribute of the existing contacts with empty value. emptyContactsAttributes = true means the empty fields in your import will erase any attribute that currently contain data in Brevo, & emptyContactsAttributes = false means the empty fields will not affect your existing data ( **only available if `updateExistingContacts` set to true **)**Mandatory if fileUrl and jsonBody is not defined.** CSV content to be imported.**Mandatory if fileBody and jsonBody is not defined.** URL of the file to be imported (**no local file**).**Mandatory if fileUrl and fileBody is not defined.** JSON content to be imported.**Mandatory if newList is not defined.** Ids of the lists in which the contacts shall be imported.Get newListURL that will be called once the import process is finished.To blacklist all the contacts for smsTo facilitate the choice to update the existing contactsinthashCode()jsonBody(List<RequestContactImportJsonBodyInner> jsonBody) newList(RequestContactImportNewList newList) voidsetDisableNotification(Boolean disableNotification) voidsetEmailBlacklist(Boolean emailBlacklist) voidsetEmptyContactsAttributes(Boolean emptyContactsAttributes) voidsetFileBody(String fileBody) voidsetFileUrl(String fileUrl) voidsetJsonBody(List<RequestContactImportJsonBodyInner> jsonBody) voidsetListIds(List<Long> listIds) voidsetNewList(RequestContactImportNewList newList) voidsetNotifyUrl(String notifyUrl) voidsetSmsBlacklist(Boolean smsBlacklist) voidsetUpdateExistingContacts(Boolean updateExistingContacts) smsBlacklist(Boolean smsBlacklist) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.updateExistingContacts(Boolean updateExistingContacts)
-
Field Details
-
JSON_PROPERTY_FILE_URL
- See Also:
-
JSON_PROPERTY_FILE_BODY
- See Also:
-
JSON_PROPERTY_JSON_BODY
- See Also:
-
JSON_PROPERTY_LIST_IDS
- See Also:
-
JSON_PROPERTY_NOTIFY_URL
- See Also:
-
JSON_PROPERTY_NEW_LIST
- See Also:
-
JSON_PROPERTY_EMAIL_BLACKLIST
- See Also:
-
JSON_PROPERTY_DISABLE_NOTIFICATION
- See Also:
-
JSON_PROPERTY_SMS_BLACKLIST
- See Also:
-
JSON_PROPERTY_UPDATE_EXISTING_CONTACTS
- See Also:
-
JSON_PROPERTY_EMPTY_CONTACTS_ATTRIBUTES
- See Also:
-
-
Constructor Details
-
RequestContactImport
public RequestContactImport()
-
-
Method Details
-
fileUrl
-
getFileUrl
**Mandatory if fileBody and jsonBody is not defined.** URL of the file to be imported (**no local file**). Possible file formats: #### .txt, .csv, .json- Returns:
- fileUrl
-
setFileUrl
-
fileBody
-
getFileBody
**Mandatory if fileUrl and jsonBody is not defined.** CSV content to be imported. Use semicolon to separate multiple attributes. **Maximum allowed file body size is 10MB** . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files.- Returns:
- fileBody
-
setFileBody
-
jsonBody
-
addJsonBodyItem
-
getJsonBody
**Mandatory if fileUrl and fileBody is not defined.** JSON content to be imported. **Maximum allowed json body size is 10MB** . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of json body size while parsing. Please use fileUrl instead to import bigger files.- Returns:
- jsonBody
-
setJsonBody
-
listIds
-
addListIdsItem
-
getListIds
**Mandatory if newList is not defined.** Ids of the lists in which the contacts shall be imported. For example, **[2, 4, 7]**.- Returns:
- listIds
-
setListIds
-
notifyUrl
-
getNotifyUrl
URL that will be called once the import process is finished. For reference, https://help.brevo.com/hc/en-us/articles/360007666479- Returns:
- notifyUrl
-
setNotifyUrl
-
newList
-
getNewList
Get newList- Returns:
- newList
-
setNewList
-
emailBlacklist
-
getEmailBlacklist
To blacklist all the contacts for email- Returns:
- emailBlacklist
-
setEmailBlacklist
-
disableNotification
-
getDisableNotification
To disable email notification- Returns:
- disableNotification
-
setDisableNotification
-
smsBlacklist
-
getSmsBlacklist
To blacklist all the contacts for sms- Returns:
- smsBlacklist
-
setSmsBlacklist
-
updateExistingContacts
-
getUpdateExistingContacts
To facilitate the choice to update the existing contacts- Returns:
- updateExistingContacts
-
setUpdateExistingContacts
-
emptyContactsAttributes
-
getEmptyContactsAttributes
To facilitate the choice to erase any attribute of the existing contacts with empty value. emptyContactsAttributes = true means the empty fields in your import will erase any attribute that currently contain data in Brevo, & emptyContactsAttributes = false means the empty fields will not affect your existing data ( **only available if `updateExistingContacts` set to true **)- Returns:
- emptyContactsAttributes
-
setEmptyContactsAttributes
-
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
-