Package com.vonage.client.messages.viber
Class ViberTextRequest.Builder
java.lang.Object
com.vonage.client.messages.MessageRequest.Builder<ViberTextRequest,ViberTextRequest.Builder>
com.vonage.client.messages.viber.ViberRequest.Builder<ViberTextRequest,ViberTextRequest.Builder>
com.vonage.client.messages.viber.ViberTextRequest.Builder
- All Implemented Interfaces:
TextMessageRequest.Builder<ViberTextRequest.Builder>
- Enclosing class:
ViberTextRequest
public static final class ViberTextRequest.Builder
extends ViberRequest.Builder<ViberTextRequest,ViberTextRequest.Builder>
implements TextMessageRequest.Builder<ViberTextRequest.Builder>
-
Field Summary
Fields inherited from class com.vonage.client.messages.viber.ViberRequest.Builder
actionText, actionUrl, category, duration, fileSize, ttl, viberType -
Method Summary
Modifier and TypeMethodDescriptionactionText(String actionText) (OPTIONAL) Text which is rendered on the action button.(OPTIONAL) A URL which is requested when the action button is clicked.build()Builds the MessageRequest.(REQUIRED) Sets the text field.Methods inherited from class com.vonage.client.messages.viber.ViberRequest.Builder
category, ttl, viberTypeMethods inherited from class com.vonage.client.messages.MessageRequest.Builder
caption, clientRef, custom, from, name, to, url, webhookUrl, webhookVersion
-
Method Details
-
text
(REQUIRED) Sets the text field. Must be between 1 and 1000 characters, including unicode.- Specified by:
textin interfaceTextMessageRequest.Builder<ViberTextRequest.Builder>- Overrides:
textin classMessageRequest.Builder<ViberTextRequest,ViberTextRequest.Builder> - Parameters:
text- The text string.- Returns:
- This builder.
-
actionUrl
Description copied from class:ViberRequest.Builder(OPTIONAL) A URL which is requested when the action button is clicked.- Overrides:
actionUrlin classViberRequest.Builder<ViberTextRequest,ViberTextRequest.Builder> - Parameters:
actionUrl- The URL as a string.- Returns:
- This builder.
-
actionText
Description copied from class:ViberRequest.Builder(OPTIONAL) Text which is rendered on the action button.- Overrides:
actionTextin classViberRequest.Builder<ViberTextRequest,ViberTextRequest.Builder> - Parameters:
actionText- The action button description.- Returns:
- This builder.
-
build
Description copied from class:MessageRequest.BuilderBuilds the MessageRequest.- Specified by:
buildin classMessageRequest.Builder<ViberTextRequest,ViberTextRequest.Builder> - Returns:
- A MessageRequest, populated with all fields from this builder.
-