Class Number.Builder

    • 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
      • 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
      • 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