public static class VerifyRequest.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.lang.String number,
java.lang.String brand) |
| Modifier and Type | Method and Description |
|---|---|
VerifyRequest |
build() |
VerifyRequest.Builder |
country(java.lang.String country)
The country for the destination phone number.
|
VerifyRequest.Builder |
length(java.lang.Integer length) |
VerifyRequest.Builder |
locale(java.util.Locale locale) |
VerifyRequest.Builder |
nextEventWait(java.lang.Integer nextEventWait) |
VerifyRequest.Builder |
pinExpiry(java.lang.Integer pinExpiry) |
VerifyRequest.Builder |
senderId(java.lang.String senderId) |
VerifyRequest.Builder |
type(VerifyRequest.LineType type) |
VerifyRequest.Builder |
workflow(VerifyRequest.Workflow workflow)
Set the predefined sequence of SMS and TTS (Text To Speech) actions to use in order to convey the PIN to your
user.
|
public VerifyRequest.Builder senderId(java.lang.String senderId)
senderId - the short alphanumeric string to specify the SenderID for SMS sent by Verify.VerifyRequest.Builderpublic VerifyRequest.Builder type(VerifyRequest.LineType type)
type - the type of network the verification will be restricted to. This value has no effect unless it has been
enabled by contacting support@nexmo.com.VerifyRequest.Builderpublic VerifyRequest.Builder workflow(VerifyRequest.Workflow workflow)
workflow - The workflow to use for conveying the PIN to your user.VerifyRequest.Builderpublic VerifyRequest.Builder locale(java.util.Locale locale)
locale - (optional) Override the default locale used for verification. By default the locale is determined
from the country code included in numberVerifyRequest.Builderpublic VerifyRequest.Builder length(java.lang.Integer length)
length - (optional) The length of the verification code to be sent to the user. Must be either 4 or 6. Use
-1 to use the default value.VerifyRequest.Builderpublic VerifyRequest.Builder pinExpiry(java.lang.Integer pinExpiry)
pinExpiry - (optional) the PIN validity time from generation, in seconds. Default is 300 secondsVerifyRequest.Builderpublic VerifyRequest.Builder nextEventWait(java.lang.Integer nextEventWait)
nextEventWait - (optional) the wait time between attempts to deliver the PIN. A number between 600-900.VerifyRequest.Builderpublic VerifyRequest.Builder country(java.lang.String country)
If you wish to used localised number formats or you are not sure if number is correctly formatted, set this to a two-character country code. For example, GB, US. Verify will work out the international phone number for you.
country - a String containing a 2-character country codeVerifyRequest.Builderpublic VerifyRequest build()