Package com.vonage.client.conversations
Class ConversationProperties.Builder
java.lang.Object
com.vonage.client.conversations.ConversationProperties.Builder
- Enclosing class:
ConversationProperties
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ConversationProperties.customData(Map<String, Object> customData) Custom key-value pairs to be included with conversation data.customSortKey(String customSortKey) Custom sort key.Number of seconds after which an empty conversation is deleted.Conversation type.
-
Method Details
-
ttl
Number of seconds after which an empty conversation is deleted.- Parameters:
ttl- The empty time-to-live in seconds, ornullif unspecified.- Returns:
- This builder.
-
type
Conversation type.- Parameters:
type- The conversation type as a string, ornullif unknown.- Returns:
- This builder.
-
customSortKey
Custom sort key.- Parameters:
customSortKey- The custom sort key as a string, ornullif unspecified.- Returns:
- This builder.
-
customData
Custom key-value pairs to be included with conversation data.- Parameters:
customData- The custom properties as a Map, ornullif unspecified.- Returns:
- This builder.
-
build
Builds the ConversationProperties.- Returns:
- An instance of ConversationProperties, populated with all fields from this builder.
-