Package com.vonage.client.insight
Class AdvancedInsightRequest
java.lang.Object
com.vonage.client.insight.BaseInsightRequest
com.vonage.client.insight.AdvancedInsightRequest
- All Implemented Interfaces:
QueryParamsRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.vonage.client.insight.BaseInsightRequest
country, number -
Method Summary
Modifier and TypeMethodDescriptionbuilder()This method is the starting point for constructing an Advanced Insight Note that the number field must be set.This method is the starting point for constructing an Advanced InsightgetCnam()booleanisAsync()Internal method for serializing the fields of this class into query parameters.static AdvancedInsightRequestwithNumber(String number) Construct an AdvancedInsightRequest with a number.static AdvancedInsightRequestwithNumberAndCountry(String number, String country) Construct a AdvancedInsightRequest with a number and country.Methods inherited from class com.vonage.client.insight.BaseInsightRequest
getCountry, getNumber
-
Method Details
-
builder
This method is the starting point for constructing an Advanced Insight- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new
AdvancedInsightRequest.Builderinstance.
-
builder
This method is the starting point for constructing an Advanced Insight Note that the number field must be set.- Returns:
- A new
AdvancedInsightRequest.Builderinstance.
-
getRealTimeData
-
getCnam
-
isAsync
-
getCallback
-
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Overrides:
makeParamsin classBaseInsightRequest- Returns:
- The query parameters as unique key-value pairs.
-
withNumber
Construct an AdvancedInsightRequest with a number.- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new AdvancedInsightRequest object.
-
withNumberAndCountry
Construct a AdvancedInsightRequest with a number and country.- Parameters:
number- A single phone number that you need insight about in national or international format.country- If a number does not have a country code, or it is uncertain, set the two-character country code.- Returns:
- A new AdvancedInsightRequest object.
-