Package com.vonage.client.messages.viber
Class ViberFileRequest.Builder
java.lang.Object
com.vonage.client.messages.MessageRequest.Builder<ViberFileRequest,ViberFileRequest.Builder>
com.vonage.client.messages.viber.ViberRequest.Builder<ViberFileRequest,ViberFileRequest.Builder>
com.vonage.client.messages.viber.ViberFileRequest.Builder
- All Implemented Interfaces:
MediaMessageRequest.Builder<ViberFileRequest.Builder>
- Enclosing class:
ViberFileRequest
public static final class ViberFileRequest.Builder
extends ViberRequest.Builder<ViberFileRequest,ViberFileRequest.Builder>
implements MediaMessageRequest.Builder<ViberFileRequest.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 TypeMethodDescriptionbuild()Builds the MessageRequest.(OPTIONAL) The name and extension of the file.(REQUIRED) The URL for the file attachment or the path for the location of the file attachment.Methods inherited from class com.vonage.client.messages.viber.ViberRequest.Builder
actionText, actionUrl, category, ttl, viberTypeMethods inherited from class com.vonage.client.messages.MessageRequest.Builder
caption, clientRef, custom, from, text, to, webhookUrl, webhookVersion
-
Method Details
-
url
(REQUIRED) The URL for the file attachment or the path for the location of the file attachment. If name is included, can just be the path. If name is not included, must include the filename and extension.Supported file types are .doc, .docx, .rtf, .dot, .dotx, .odt, .odf, .fodt, .txt, .info, .pdf, .xps, .pdax, .eps, .xls, .xlsx, .ods, .fods, .csv, .xlsm, .xltx. Maximum file size is 200MB.
- Specified by:
urlin interfaceMediaMessageRequest.Builder<ViberFileRequest.Builder>- Overrides:
urlin classMessageRequest.Builder<ViberFileRequest,ViberFileRequest.Builder> - Parameters:
url- The file URL as a string.- Returns:
- This builder.
-
name
(OPTIONAL) The name and extension of the file.- Overrides:
namein classMessageRequest.Builder<ViberFileRequest,ViberFileRequest.Builder> - Parameters:
name- The filename and extension as a string.- Returns:
- This builder.
-
build
Description copied from class:MessageRequest.BuilderBuilds the MessageRequest.- Specified by:
buildin classMessageRequest.Builder<ViberFileRequest,ViberFileRequest.Builder> - Returns:
- A MessageRequest, populated with all fields from this builder.
-