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.BuilderamdStatusCallback(String amdStatusCallback)The URL we should call to send amd status information to your applicationNumber.BuilderamdStatusCallbackMethod(HttpMethod amdStatusCallbackMethod)HTTP Method to use with amd_status_callbackNumberbuild()Create and return resulting<Number>elementNumber.Builderbyoc(String byoc)BYOC trunk SID (Beta)static Number.BuilderfromXml(String xml)Create and return a<Number.Builder>from an XML stringNumber.BuildermachineDetection(String machineDetection)Enable machine detection or end of greeting detectionNumber.BuildermachineDetectionSilenceTimeout(Integer machineDetectionSilenceTimeout)Number of milliseconds of initial silenceNumber.BuildermachineDetectionSpeechEndThreshold(Integer machineDetectionSpeechEndThreshold)Number of milliseconds of silence after speech activityNumber.BuildermachineDetectionSpeechThreshold(Integer machineDetectionSpeechThreshold)Number of milliseconds for measuring stick for the length of the speech activityNumber.BuildermachineDetectionTimeout(Integer machineDetectionTimeout)Number of seconds to wait for machine detectionNumber.Buildermethod(HttpMethod method)TwiML URL methodNumber.BuildersendDigits(String sendDigits)DTMF tones to play when the call is answeredNumber.BuilderstatusCallback(String statusCallback)Status callback URLNumber.BuilderstatusCallback(URI statusCallback)Status callback URLNumber.BuilderstatusCallbackEvents(Number.Event statusCallbackEvent)Events to call status callbackNumber.BuilderstatusCallbackEvents(List<Number.Event> statusCallbackEvent)Events to call status callbackNumber.BuilderstatusCallbackMethod(HttpMethod statusCallbackMethod)Status callback URL methodNumber.Builderurl(String url)TwiML URLNumber.Builderurl(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
-
-