Package com.vonage.client.insight
Class AdvancedInsightRequest.Builder
java.lang.Object
com.vonage.client.insight.AdvancedInsightRequest.Builder
- Enclosing class:
AdvancedInsightRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasync(boolean async) build()cnam(boolean cnam) realTimeData(boolean realTimeData)
-
Field Details
-
async
-
cnam
-
realTimeData
-
number
-
country
-
callback
-
-
Constructor Details
-
Builder
-
Builder
protected Builder()
-
-
Method Details
-
number
- Parameters:
number- A single phone number that you need insight about in national or international format. This field is REQUIRED.- Returns:
- This builder.
-
country
- Parameters:
country- If a number does not have a country code, or it is uncertain, set the two-character country code.- Returns:
- This builder.
-
cnam
- Parameters:
cnam- Indicates if the name of the person who owns the phone number should also be looked up and returned. Set to true to receive phone number owner name in the response. This is only available for US numbers and incurs an additional charge.- Returns:
- This builder.
-
async
- Parameters:
async- True if the call should be done asynchronously. When setting this value to true, thecallback(String)parameter must also be set.- Returns:
- This builder.
-
callback
- Parameters:
url- The URL that Vonage will send a request to when the insight lookup is finished. This only takes effect whenasync(boolean)istrue.- Returns:
- This builder.
-
realTimeData
- Parameters:
realTimeData- A boolean to choose whether to get real time data back in the response. This only applies whenasync(boolean)isfalse.- Returns:
- This builder.
-
build
- Returns:
- A new
AdvancedInsightRequestobject from the stored builder options.
-