public class ValidationRequestCreator extends Creator<ValidationRequest>
Constructor and Description |
---|
ValidationRequestCreator(PhoneNumber phoneNumber)
Construct a new ValidationRequestCreator.
|
ValidationRequestCreator(String pathAccountSid,
PhoneNumber phoneNumber)
Construct a new ValidationRequestCreator.
|
Modifier and Type | Method and Description |
---|---|
ValidationRequest |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
ValidationRequestCreator |
setCallDelay(Integer callDelay)
The number of seconds, between 0 and 60, to delay before initiating the
verification call.
|
ValidationRequestCreator |
setExtension(String extension)
Digits to dial after connecting the verification call..
|
ValidationRequestCreator |
setFriendlyName(String friendlyName)
A human readable description for the new caller ID with maximum length 64
characters.
|
ValidationRequestCreator |
setStatusCallback(String statusCallback)
A URL that Twilio will request when the verification call ends to notify your
app if the verification process was successful or not.
|
ValidationRequestCreator |
setStatusCallback(URI statusCallback)
A URL that Twilio will request when the verification call ends to notify your
app if the verification process was successful or not.
|
ValidationRequestCreator |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method Twilio should use when requesting the above URL.
|
create, createAsync, createAsync
public ValidationRequestCreator(PhoneNumber phoneNumber)
phoneNumber
- The phone number to verify.public ValidationRequestCreator(String pathAccountSid, PhoneNumber phoneNumber)
pathAccountSid
- The account_sidphoneNumber
- The phone number to verify.public ValidationRequestCreator setFriendlyName(String friendlyName)
friendlyName
- A human readable description for the new caller ID with
maximum length 64 characters.public ValidationRequestCreator setCallDelay(Integer callDelay)
callDelay
- The number of seconds, between 0 and 60, to delay before
initiating the verification call.public ValidationRequestCreator setExtension(String extension)
extension
- Digits to dial after connecting the verification call.public ValidationRequestCreator setStatusCallback(URI statusCallback)
statusCallback
- A URL that Twilio will request when the verification
call ends to notify your app if the verification
process was successful or not.public ValidationRequestCreator setStatusCallback(String statusCallback)
statusCallback
- A URL that Twilio will request when the verification
call ends to notify your app if the verification
process was successful or not.public ValidationRequestCreator setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- The HTTP method Twilio should use when
requesting the above URL.public ValidationRequest create(TwilioRestClient client)
create
in class Creator<ValidationRequest>
client
- TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.