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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Number.Builder
amdStatusCallback(String amdStatusCallback)
The URL we should call to send amd status information to your applicationNumber.Builder
amdStatusCallbackMethod(HttpMethod amdStatusCallbackMethod)
HTTP Method to use with amd_status_callbackNumber
build()
Create and return resulting<Number>
elementNumber.Builder
byoc(String byoc)
BYOC trunk SID (Beta)static Number.Builder
fromXml(String xml)
Create and return a<Number.Builder>
from an XML stringNumber.Builder
machineDetection(String machineDetection)
Enable machine detection or end of greeting detectionNumber.Builder
machineDetectionSilenceTimeout(Integer machineDetectionSilenceTimeout)
Number of milliseconds of initial silenceNumber.Builder
machineDetectionSpeechEndThreshold(Integer machineDetectionSpeechEndThreshold)
Number of milliseconds of silence after speech activityNumber.Builder
machineDetectionSpeechThreshold(Integer machineDetectionSpeechThreshold)
Number of milliseconds for measuring stick for the length of the speech activityNumber.Builder
machineDetectionTimeout(Integer machineDetectionTimeout)
Number of seconds to wait for machine detectionNumber.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
-
fromXml
public static Number.Builder fromXml(String xml) throws TwiMLException
Create and return a<Number.Builder>
from an XML string- Throws:
TwiMLException
-
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
-
byoc
public Number.Builder byoc(String byoc)
BYOC trunk SID (Beta)
-
machineDetection
public Number.Builder machineDetection(String machineDetection)
Enable machine detection or end of greeting detection
-
amdStatusCallbackMethod
public Number.Builder amdStatusCallbackMethod(HttpMethod amdStatusCallbackMethod)
HTTP Method to use with amd_status_callback
-
amdStatusCallback
public Number.Builder amdStatusCallback(String amdStatusCallback)
The URL we should call to send amd status information to your application
-
machineDetectionTimeout
public Number.Builder machineDetectionTimeout(Integer machineDetectionTimeout)
Number of seconds to wait for machine detection
-
machineDetectionSpeechThreshold
public Number.Builder machineDetectionSpeechThreshold(Integer machineDetectionSpeechThreshold)
Number of milliseconds for measuring stick for the length of the speech activity
-
machineDetectionSpeechEndThreshold
public Number.Builder machineDetectionSpeechEndThreshold(Integer machineDetectionSpeechEndThreshold)
Number of milliseconds of silence after speech activity
-
machineDetectionSilenceTimeout
public Number.Builder machineDetectionSilenceTimeout(Integer machineDetectionSilenceTimeout)
Number of milliseconds of initial silence
-
build
public Number build()
Create and return resulting<Number>
element
-
-