Package com.twilio.twiml.voice
Class Number.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Number.Builder>
-
- com.twilio.twiml.voice.Number.Builder
-
- Enclosing class:
- Number
public static class Number.Builder extends TwiML.Builder<Number.Builder>
Create a new<Number>
element
-
-
Constructor Summary
Constructors Constructor Description Builder(PhoneNumber phoneNumber)
Create a<Number>
with phoneNumberBuilder(String phoneNumber)
Create a<Number>
with phoneNumber
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
build()
Create and return resulting<Number>
elementNumber.Builder
method(HttpMethod method)
TwiML URL methodNumber.Builder
sendDigits(String sendDigits)
DTMF tones to play when the call is answeredNumber.Builder
statusCallback(String statusCallback)
Status callback URLNumber.Builder
statusCallback(URI statusCallback)
Status callback URLNumber.Builder
statusCallbackEvents(Number.Event statusCallbackEvent)
Events to call status callbackNumber.Builder
statusCallbackEvents(List<Number.Event> statusCallbackEvent)
Events to call status callbackNumber.Builder
statusCallbackMethod(HttpMethod statusCallbackMethod)
Status callback URL methodNumber.Builder
url(String url)
TwiML URLNumber.Builder
url(URI url)
TwiML URL-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Constructor Detail
-
Builder
public Builder(PhoneNumber phoneNumber)
Create a<Number>
with phoneNumber
-
Builder
public Builder(String phoneNumber)
Create a<Number>
with phoneNumber
-
-
Method Detail
-
sendDigits
public Number.Builder sendDigits(String sendDigits)
DTMF tones to play when the call is answered
-
url
public Number.Builder url(URI url)
TwiML URL
-
url
public Number.Builder url(String url)
TwiML URL
-
method
public Number.Builder method(HttpMethod method)
TwiML URL method
-
statusCallbackEvents
public Number.Builder statusCallbackEvents(List<Number.Event> statusCallbackEvent)
Events to call status callback
-
statusCallbackEvents
public Number.Builder statusCallbackEvents(Number.Event statusCallbackEvent)
Events to call status callback
-
statusCallback
public Number.Builder statusCallback(URI statusCallback)
Status callback URL
-
statusCallback
public Number.Builder statusCallback(String statusCallback)
Status callback URL
-
statusCallbackMethod
public Number.Builder statusCallbackMethod(HttpMethod statusCallbackMethod)
Status callback URL method
-
build
public Number build()
Create and return resulting<Number>
element
-
-