Package com.vonage.client.insight
Class StandardInsightRequest
java.lang.Object
com.vonage.client.insight.BaseInsightRequest
com.vonage.client.insight.StandardInsightRequest
- 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 a Standard Insight request.This method is the starting point for constructing a Standard Insight request.getCnam()static StandardInsightRequestwithNumber(String number) Construct a StandardInsightRequest with a number.static StandardInsightRequestwithNumberAndCountry(String number, String country) Construct a StandardInsightRequest with a number and country.Methods inherited from class com.vonage.client.insight.BaseInsightRequest
getCountry, getNumber, makeParams
-
Method Details
-
getCnam
-
withNumber
Construct a StandardInsightRequest with a number.- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new StandardInsightRequest object.
-
withNumberAndCountry
Construct a StandardInsightRequest 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 StandardInsightRequest object.
-
builder
This method is the starting point for constructing a Standard Insight request.- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new
StandardInsightRequest.Builderinstance.
-
builder
This method is the starting point for constructing a Standard Insight request. Note that the number field must be set.- Returns:
- A new
StandardInsightRequest.Builderinstance.
-