Package com.vonage.client.conversations
Class MessageEvent.Builder
java.lang.Object
com.vonage.client.conversations.Event.Builder<MessageEvent,MessageEvent.Builder>
com.vonage.client.conversations.MessageEvent.Builder
- Enclosing class:
MessageEvent
public static final class MessageEvent.Builder
extends Event.Builder<MessageEvent,MessageEvent.Builder>
Builder for configuring parameters of the event request.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the EventWithBody.Sets the message location, if the type is MessageType.LOCATION.Sets the message text, if the type is MessageType.TEXT.Sets the URL, if appropriate for the type.Methods inherited from class com.vonage.client.conversations.Event.Builder
from
-
Method Details
-
text
Sets the message text, if the type is MessageType.TEXT.- Parameters:
text- The message text.- Returns:
- This builder.
-
url
Sets the URL, if appropriate for the type.- Parameters:
url- The absolute media URL as a string.- Returns:
- This builder.
-
location
Sets the message location, if the type is MessageType.LOCATION.- Parameters:
location- The location details.- Returns:
- This builder.
-
build
Description copied from class:Event.BuilderBuilds the EventWithBody.- Specified by:
buildin classEvent.Builder<MessageEvent,MessageEvent.Builder> - Returns:
- An instance of Event, populated with all fields from this builder.
-