Package com.twilio.twiml.voice
Class Enqueue.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Enqueue.Builder>
-
- com.twilio.twiml.voice.Enqueue.Builder
-
- Enclosing class:
- Enqueue
public static class Enqueue.Builder extends TwiML.Builder<Enqueue.Builder>
Create a new<Enqueue>
element
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enqueue.Builder
action(String action)
Action URLEnqueue.Builder
action(URI action)
Action URLEnqueue
build()
Create and return resulting<Enqueue>
elementEnqueue.Builder
method(HttpMethod method)
Action URL methodEnqueue.Builder
name(String name)
Friendly nameEnqueue.Builder
task(Task task)
Add a child<Task>
elementEnqueue.Builder
waitUrl(String waitUrl)
Wait URLEnqueue.Builder
waitUrl(URI waitUrl)
Wait URLEnqueue.Builder
waitUrlMethod(HttpMethod waitUrlMethod)
Wait URL methodEnqueue.Builder
workflowSid(String workflowSid)
TaskRouter Workflow SID-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Constructor Detail
-
Builder
public Builder(String name)
Create a<Enqueue>
with name
-
Builder
public Builder()
Create a<Enqueue>
with child elements
-
-
Method Detail
-
action
public Enqueue.Builder action(URI action)
Action URL
-
action
public Enqueue.Builder action(String action)
Action URL
-
method
public Enqueue.Builder method(HttpMethod method)
Action URL method
-
waitUrl
public Enqueue.Builder waitUrl(URI waitUrl)
Wait URL
-
waitUrl
public Enqueue.Builder waitUrl(String waitUrl)
Wait URL
-
waitUrlMethod
public Enqueue.Builder waitUrlMethod(HttpMethod waitUrlMethod)
Wait URL method
-
workflowSid
public Enqueue.Builder workflowSid(String workflowSid)
TaskRouter Workflow SID
-
name
public Enqueue.Builder name(String name)
Friendly name
-
task
public Enqueue.Builder task(Task task)
Add a child<Task>
element
-
build
public Enqueue build()
Create and return resulting<Enqueue>
element
-
-