Package com.vonage.client.conversations
Class Conversation.Builder
java.lang.Object
com.vonage.client.conversations.Conversation.Builder
- Enclosing class:
Conversation
Builder for creating or updating a Conversation. All fields are optional.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Conversation.Specifies callback parameters for webhooks.displayName(String displayName) The public facing name of the conversation.An image URL that you associate with the conversation.Internal conversation name.Sets the PSTN numbers for this conversation.properties(ConversationProperties properties) Properties for this conversation.
-
Method Details
-
name
Internal conversation name. Must be unique.- Parameters:
name- The conversation name.- Returns:
- This builder.
-
displayName
The public facing name of the conversation.- Parameters:
displayName- The display name.- Returns:
- This builder.
-
imageUrl
An image URL that you associate with the conversation.- Parameters:
imageUrl- The image URL as a string.- Returns:
- This builder.
-
properties
Properties for this conversation.- Parameters:
properties- The conversation properties object.- Returns:
- This builder.
-
phone
Sets the PSTN numbers for this conversation.- Parameters:
phoneNumber- The telephone or mobile number(s) for this conversation in E.164 format.- Returns:
- This builder.
-
callback
Specifies callback parameters for webhooks.- Parameters:
callback- The callback properties, ornullif unspecified.- Returns:
- This builder.
-
build
Builds the Conversation.- Returns:
- An instance of Conversation, populated with all fields from this builder.
-