Package com.vonage.client.users
Class User.Builder
java.lang.Object
com.vonage.client.users.User.Builder
- Enclosing class:
User
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Application object.Sets the communication channels for this user.channels(Collection<? extends Channel> channels) Sets the communication channels for this user.customData(Map<String, ?> customData) Arbitrary freeform data to associate with the user.displayName(String displayName) Set the display name for the user.An image URL to associate with the user.Unique name for a user.
-
Method Details
-
name
Unique name for a user.- Parameters:
name- The user's name.- Returns:
- This builder.
-
displayName
Set the display name for the user. This does nbot need to be unique.- Parameters:
displayName- The user's display name.- Returns:
- This builder.
-
imageUrl
An image URL to associate with the user.- Parameters:
imageUrl- The image URL as a string.- Returns:
- This builder.
-
customData
Arbitrary freeform data to associate with the user. Note that this is not additive: the value set here will replace any existing custom data when updating a user.- Parameters:
customData- Custom key/value pairs map.- Returns:
- This builder.
-
channels
Sets the communication channels for this user.- Parameters:
channels- The channels to associate with the user.- Returns:
- This builder.
-
channels
Sets the communication channels for this user.- Parameters:
channels- The collection of channels to associate with the user.- Returns:
- This builder.
-
build
Builds the Application object.- Returns:
- A new Application containing the configured properties.
-