-
public class ProfileUpdateOperationInternal SDK representation of an Omnichannel Batch Profile
-
-
Field Summary
Fields Modifier and Type Field Description private ProfileDeletableAttributeemailprivate BatchEmailSubscriptionStateemailMarketingprivate ProfileDeletableAttributephoneNumberprivate BatchSMSSubscriptionStatesmsMarketingprivate ProfileDeletableAttributelanguageprivate ProfileDeletableAttributeregionprivate final Map<String, UserAttribute>customAttributes
-
Method Summary
Modifier and Type Method Description ProfileDeletableAttributegetEmail()Get the email address voidsetEmail(@Nullable() String email)Set an email address BatchEmailSubscriptionStategetEmailMarketing()Get the email marketing subscription state voidsetEmailMarketing(@NonNull() BatchEmailSubscriptionState emailMarketing)Set an email marketing subscription state ProfileDeletableAttributegetPhoneNumber()Get the phone number voidsetPhoneNumber(@Nullable() String phoneNumber)Set a phone number BatchSMSSubscriptionStategetSMSMarketing()Get the SMS marketing subscription state voidsetSMSMarketing(@NonNull() BatchSMSSubscriptionState smsMarketing)Set an SMS marketing subscription state ProfileDeletableAttributegetLanguage()Get the profile language voidsetLanguage(@Nullable() String language)Set a profile language ProfileDeletableAttributegetRegion()Get the profile region voidsetRegion(@Nullable() String region)Set a profile region Map<String, UserAttribute>getCustomAttributes()Get the profile custom attributes voidaddAttribute(@NonNull() String key, @NonNull() UserAttribute attribute)Add a custom attributes voidaddToList(@NonNull() String key, @NonNull() List<String> values)Add a list of value to an array attribute (existing or not) voidremoveAttribute(String key)Remove a profile custom attribute voidremoveFromList(@NonNull() String key, @NonNull() List<String> values)Remove a list of value from an array attribute -
-
Method Detail
-
getEmail
@Nullable() ProfileDeletableAttribute getEmail()
Get the email address
-
setEmail
void setEmail(@Nullable() String email)
Set an email address
- Parameters:
email- The email address
-
getEmailMarketing
@Nullable() BatchEmailSubscriptionState getEmailMarketing()
Get the email marketing subscription state
-
setEmailMarketing
void setEmailMarketing(@NonNull() BatchEmailSubscriptionState emailMarketing)
Set an email marketing subscription state
- Parameters:
emailMarketing- The email marketing subscription state
-
getPhoneNumber
@Nullable() ProfileDeletableAttribute getPhoneNumber()
Get the phone number
-
setPhoneNumber
void setPhoneNumber(@Nullable() String phoneNumber)
Set a phone number
- Parameters:
phoneNumber- The phone number
-
getSMSMarketing
@Nullable() BatchSMSSubscriptionState getSMSMarketing()
Get the SMS marketing subscription state
-
setSMSMarketing
void setSMSMarketing(@NonNull() BatchSMSSubscriptionState smsMarketing)
Set an SMS marketing subscription state
- Parameters:
smsMarketing- The SMS marketing subscription state
-
getLanguage
@Nullable() ProfileDeletableAttribute getLanguage()
Get the profile language
-
setLanguage
void setLanguage(@Nullable() String language)
Set a profile language
- Parameters:
language- The profile language
-
getRegion
@Nullable() ProfileDeletableAttribute getRegion()
Get the profile region
-
setRegion
void setRegion(@Nullable() String region)
Set a profile region
- Parameters:
region- The profile region
-
getCustomAttributes
@NonNull() Map<String, UserAttribute> getCustomAttributes()
Get the profile custom attributes
-
addAttribute
void addAttribute(@NonNull() String key, @NonNull() UserAttribute attribute)
Add a custom attributes
- Parameters:
key- The key of the custom attributeattribute- The custom attribute
-
addToList
void addToList(@NonNull() String key, @NonNull() List<String> values)
Add a list of value to an array attribute (existing or not)
- Parameters:
key- The key of the array attributesvalues- Values to add
-
removeAttribute
void removeAttribute(String key)
Remove a profile custom attribute
- Parameters:
key- The key of custom attribute to remove
-
-
-
-