Class WhatsappStickerRequest.Builder
java.lang.Object
com.vonage.client.messages.MessageRequest.Builder<WhatsappStickerRequest,WhatsappStickerRequest.Builder>
com.vonage.client.messages.whatsapp.WhatsappRequest.Builder<WhatsappStickerRequest,WhatsappStickerRequest.Builder>
com.vonage.client.messages.whatsapp.WhatsappStickerRequest.Builder
- Enclosing class:
WhatsappStickerRequest
public static final class WhatsappStickerRequest.Builder
extends WhatsappRequest.Builder<WhatsappStickerRequest,WhatsappStickerRequest.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the MessageRequest.(REQUIRED ifurl(String)is not specified) The ID of the sticker in relation to a specific WhatsApp deployment.(REQUIRED ifid(String)is not specified) The publicly accessible URL of the sticker image.Methods inherited from class com.vonage.client.messages.whatsapp.WhatsappRequest.Builder
contextMessageIdMethods inherited from class com.vonage.client.messages.MessageRequest.Builder
caption, clientRef, custom, from, name, text, to, ttl, webhookUrl, webhookVersion
-
Method Details
-
url
(REQUIRED ifid(String)is not specified) The publicly accessible URL of the sticker image. Must be in.webpformat. You must specify only the ID or the URL, but not both.- Overrides:
urlin classMessageRequest.Builder<WhatsappStickerRequest,WhatsappStickerRequest.Builder> - Parameters:
url- The sticker URL as a string.- Returns:
- This builder.
-
id
(REQUIRED ifurl(String)is not specified) The ID of the sticker in relation to a specific WhatsApp deployment. You must specify only the ID or the URL, but not both.- Parameters:
id- The sticker's unique identifier as a string.- Returns:
- This builder.
-
build
Description copied from class:MessageRequest.BuilderBuilds the MessageRequest.- Specified by:
buildin classMessageRequest.Builder<WhatsappStickerRequest,WhatsappStickerRequest.Builder> - Returns:
- A MessageRequest, populated with all fields from this builder.
-